Skip to content
Snippets Groups Projects
Unverified Commit eaa94d6d authored by Louis Montaut's avatar Louis Montaut Committed by GitHub
Browse files

Merge pull request #4 from nim65s/coal-more-compat

Coal more compat
parents 69da2d64 3e7eaacd
No related branches found
No related tags found
No related merge requests found
Pipeline #42979 failed
......@@ -3,4 +3,15 @@
message(WARNING "Please update your CMake from 'hpp-fcl' to 'coal'")
find_package(coal REQUIRED)
add_library(hpp-fcl::hpp-fcl ALIAS coal::coal)
if(CMAKE_VERSION VERSION_LESS "3.18.0")
if(NOT TARGET hpp-fcl::hpp-fcl)
add_library(hpp-fcl::hpp-fcl SHARED IMPORTED)
target_link_libraries(hpp-fcl::hpp-fcl INTERFACE coal::coal)
get_property(_cfg TARGET coal::coal PROPERTY IMPORTED_CONFIGURATIONS)
get_property(_loc TARGET coal::coal PROPERTY "IMPORTED_LOCATION_${_cfg}")
set_property(TARGET hpp-fcl::hpp-fcl PROPERTY IMPORTED_LOCATION "${_loc}")
endif()
else()
add_library(hpp-fcl::hpp-fcl ALIAS coal::coal)
endif()
#ifndef HPP_FCL_COAL_HH
#define HPP_FCL_COAL_HH
#ifndef HPP_FCL_COAL_HPP
#define HPP_FCL_COAL_HPP
#include <coal/config.hh>
#include <coal/deprecated.hh>
#define COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL
#ifdef _MSC_VER
#pragma message COAL_DEPRECATED_HEADER( \
"Please update your includes from 'hpp/fcl' to 'coal'")
#else
#warning "Please update your includes from 'hpp/fcl' to 'coal'"
#endif
#define HPP_FCL_VERSION_AT_LEAST(major, minor, patch) \
COAL_VERSION_AT_LEAST(major, minor, patch)
#endif // COAL_FWD_HH
#endif // COAL_FWD_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment