diff options
| author | Phoebe <20694052+PhoebeHui@users.noreply.github.com> | 2020-10-28 04:18:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-27 13:18:00 -0700 |
| commit | 18f84f2fb986e3a3d8d37d868168b202eef0e45f (patch) | |
| tree | f2254807a7d0e7dad75a8cdda9567b880203a485 /ports/ompl/fix_dependency.patch | |
| parent | 44842bfd6a57a361f69db4c36c6a48d6ddb75e4f (diff) | |
| download | vcpkg-18f84f2fb986e3a3d8d37d868168b202eef0e45f.tar.gz vcpkg-18f84f2fb986e3a3d8d37d868168b202eef0e45f.zip | |
[ompl] Fix dependency issue (#14250)
Diffstat (limited to 'ports/ompl/fix_dependency.patch')
| -rw-r--r-- | ports/ompl/fix_dependency.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ports/ompl/fix_dependency.patch b/ports/ompl/fix_dependency.patch new file mode 100644 index 000000000..6ab6f7137 --- /dev/null +++ b/ports/ompl/fix_dependency.patch @@ -0,0 +1,32 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 24be873..3b916d7 100644
+--- 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
+@@ -199,7 +198,7 @@ set(OMPLAPP_LIBRARIES
+ ${Boost_FILESYSTEM_LIBRARY}
+ ${Boost_SYSTEM_LIBRARY}
+ ${OPENGL_LIBRARIES}
+- ${ASSIMP_LIBRARIES}
++ assimp::assimp
+ ${FCL_LIBRARIES})
+ link_directories(${ASSIMP_LIBRARY_DIRS} ${CCD_LIBRARY_DIRS} ${OCTOMAP_LIBRARY_DIRS} ${FCL_LIBRARY_DIRS})
+
|
