We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b20de9 commit bc5a2f6Copy full SHA for bc5a2f6
hpp-fclConfig.cmake
@@ -3,4 +3,13 @@
3
message(WARNING "Please update your CMake from 'hpp-fcl' to 'coal'")
4
5
find_package(coal REQUIRED)
6
-add_library(hpp-fcl::hpp-fcl ALIAS coal::coal)
+
7
+if(CMAKE_VERSION VERSION_LESS "3.18.0")
8
+ add_library(hpp-fcl::hpp-fcl SHARED IMPORTED)
9
+ target_link_libraries(hpp-fcl::hpp-fcl INTERFACE coal::coal)
10
+ get_property(_cfg TARGET coal::coal PROPERTY IMPORTED_CONFIGURATIONS)
11
+ get_property(_loc TARGET coal::coal PROPERTY "IMPORTED_LOCATION_${_cfg}")
12
+ set_property(TARGET hpp-fcl::hpp-fcl PROPERTY IMPORTED_LOCATION "${_loc}")
13
+else()
14
+ add_library(hpp-fcl::hpp-fcl ALIAS coal::coal)
15
+endif()
0 commit comments