配置direct_visual_lidar_calibration遇到target “Iridescence::iridescence“ is imported but not globally

CMake Error at /usr/local/lib/cmake/iridescence/iridescence-config.cmake:43 (add_library):
add_library cannot create ALIAS target "Iridescence::Iridescence" because
target "Iridescence::iridescence" is imported but not globally visible.
Call Stack (most recent call first):
direct_visual_lidar_calibration/CMakeLists.txt:28 (find_package)


-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Configuring incomplete, errors occurred!
See also "/home/lcs/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/lcs/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

解决方案:
在 /usr/local/lib/cmake/iridescence/iridescence-targets.cmake
modify:add_library(Iridescence::iridescence SHARED IMPORTED ) -> add_library(Iridescence::iridescence SHARED IMPORTED GLOBAL

你可能感兴趣的:(java,前端,服务器)