Skip to content

Commit

Permalink
cmake: Use IMPLIB instead of LOCATION on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 29, 2024
1 parent 7103469 commit e9c4fdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hpp-fclConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ if(NOT TARGET hpp-fcl::hpp-fcl)
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}")
if(WIN32)
set_property(TARGET hpp-fcl::hpp-fcl PROPERTY IMPORTED_IMPLIB "${_loc}")
else()
set_property(TARGET hpp-fcl::hpp-fcl PROPERTY IMPORTED_LOCATION "${_loc}")
endif()
target_compile_definitions(hpp-fcl::hpp-fcl INTERFACE COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL)
endif()

0 comments on commit e9c4fdf

Please sign in to comment.