ament_export_libraries error - IMPORTED_LOCATION is not allowed

asked 2021-02-19 08:25:33 -0500

mathsan gravatar image

Hello!

I'm trying to build from source on Foxy (Ubuntu) a package from AWS (cloudwatchmetrics-ros2) that are only supported on Dashing. I am currently experience an error with a CMakeLists file that are giving this feedback in the ament_export_libraries() function as described below:

CMake Error at /opt/ros/foxy/share/ament_cmake_export_libraries/cmake/ament_export_libraries.cmake:83 (get_target_property): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "IMPORTED_LOCATION" is not allowed. Call Stack (most recent call first): CMakeLists.txt:126 (ament_export_libraries)

CMake Error at /opt/ros/foxy/share/ament_cmake_export_libraries/cmake/ament_export_libraries.cmake:90 (get_target_property): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "IMPORTED_LOCATION__imported_configurations-NOTFOUND" is not allowed. Call Stack (most recent call first): CMakeLists.txt:126 (ament_export_libraries)

Do you guys know what this property is supposed to do? I look into the CMake docs, but I did not found anything useful.

edit retag flag offensive close merge delete

Comments

Is it still an issue for you?

kak13 gravatar image kak13  ( 2021-04-01 22:01:52 -0500 )edit