mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 16:53:02 +08:00
fcl: add missing dependencies within cmake
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
This commit is contained in:
parent
216f7137b9
commit
a81a516505
14
ports/fcl/0002-fix_dependencies.patch
Normal file
14
ports/fcl/0002-fix_dependencies.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 5ce1f77..1f3e863 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -10,8 +10,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||
SOVERSION ${FCL_ABI_VERSION})
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
- PUBLIC ${OCTOMAP_LIBRARIES}
|
||||
- PRIVATE ${CCD_LIBRARIES}
|
||||
+ PUBLIC octomap octomath ccd
|
||||
PRIVATE ${Boost_LIBRARIES})
|
||||
|
||||
target_include_directories(${PROJECT_NAME} INTERFACE
|
@ -1,4 +1,4 @@
|
||||
Source: fcl
|
||||
Version: 0.5.0-2
|
||||
Version: 0.5.0-3
|
||||
Description: a library for performing three types of proximity queries on a pair of geometric models composed of triangles
|
||||
Build-Depends: boost, ccd, octomap
|
||||
|
@ -16,7 +16,8 @@ vcpkg_from_github(
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001_fix_package_detection.patch)
|
||||
${CMAKE_CURRENT_LIST_DIR}/0001_fix_package_detection.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/0002-fix_dependencies.patch)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(FCL_STATIC_LIBRARY ON)
|
||||
@ -37,6 +38,11 @@ vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "cmake/")
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/fcl/fclConfig.cmake FCL_CONFIG)
|
||||
string(REPLACE "unset(_expectedTargets)"
|
||||
"unset(_expectedTargets)\n\nfind_package(octomap REQUIRED)\nfind_package(ccd REQUIRED)" FCL_CONFIG "${FCL_CONFIG}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/fcl/fclConfig.cmake "${FCL_CONFIG}")
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/fcl RENAME copyright)
|
||||
|
Loading…
Reference in New Issue
Block a user