ament_export_libraries error - IMPORTED_LOCATION is not allowed
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.
Is it still an issue for you?