jedeschaud / ct_icp

CT-ICP: Continuous-Time LiDAR Odometry
MIT License
737 stars 126 forks source link

INTERFACE_LIBRARY targets may only have whitelisted properties. The property "IMPORTED_RELEASE_LOCATION" is not allowed #75

Open slamjingjing opened 1 year ago

fighter-hub commented 1 year ago

update cmake

asackan commented 6 months ago

I changed cmake/external.cmake 13 line. also update cmake version up to 3.20

get_target_property(__LOCATION ${target} IMPORTED_RELEASE_LOCATION)

to

get_target_property(__LOCATION ${target} IMPORTED_LOCATION_RELEASE)

so I fixed it

saadehmd commented 1 month ago

Still gives the same issue after applying the above corrections

INFO /ros_ws/src/ct_icp/install/Ceres/lib/libceres.so.2.0.0 CMake Error at cmake/external.cmake:13 (get_target_property): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "IMPORTED_LOCATION_RELEASE" is not allowed. Call Stack (most recent call first): CMakeLists.txt:51 (include)

INFO /ros_ws/src/ct_icp/install/yaml-cpp/lib/libyaml-cpp.so.0.6.3 CMake Error at cmake/external.cmake:13 (get_target_property): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "IMPORTED_LOCATION_RELEASE" is not allowed. Call Stack (most recent call first): CMakeLists.txt:51 (include)

saadehmd commented 1 month ago

sorry didn't read the earlier comment properly, Updating cmake to version 3.20.5 solves this issue :)