vcpkg/ports/omplapp/fix_dependency.patch

33 lines
1.2 KiB
Diff
Raw Normal View History

2020-10-28 04:18:00 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
2020-12-23 17:08:28 -08:00
index 4c7e6901..a433b7da 100644
2020-10-28 04:18:00 +08:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,7 +136,7 @@ find_package(Drawstuff QUIET)
set_package_properties(assimp PROPERTIES
URL "http://assimp.org"
PURPOSE "Used in ompl_app for reading meshes representing robots and environments.")
-find_package(assimp REQUIRED)
+find_package(assimp CONFIG REQUIRED)
set_package_properties(ccd PROPERTIES
URL "https://github.com/danfis/libccd"
PURPOSE "Collision detection library used by fcl.")
@@ -178,8 +178,7 @@ include_directories(
"${OMPLAPP_INCLUDE_DIRS}"
"${OMPL_INCLUDE_DIRS}"
"${EIGEN3_INCLUDE_DIR}"
- "${FCL_INCLUDE_DIRS}"
- "${ASSIMP_INCLUDE_DIRS}")
+ "${FCL_INCLUDE_DIRS}")
# ROS installs fcl in /usr. In /usr/include/fcl/config.h it says octomap was
# enabled. Octomap is installed in /opt/ros/${ROS_DISTRO}/include (most
2020-12-23 17:08:28 -08:00
@@ -195,7 +194,7 @@ set(OMPLAPP_MODULE_LIBRARIES
${FCL_LIBRARIES})
set(OMPLAPP_LIBRARIES
2020-10-28 04:18:00 +08:00
${OPENGL_LIBRARIES}
- ${ASSIMP_LIBRARIES}
+ assimp::assimp
${FCL_LIBRARIES})
link_directories(${ASSIMP_LIBRARY_DIRS} ${CCD_LIBRARY_DIRS} ${OCTOMAP_LIBRARY_DIRS} ${FCL_LIBRARY_DIRS})