Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[octomap] Update to 1.9.5 #13356

Merged
merged 1 commit into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions ports/octomap/001-fix-exported-targets.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
diff --git a/octomap/src/CMakeLists.txt b/octomap/src/CMakeLists.txt
index 9ac6dcb..526ad76 100644
index 45b384f..ab1b6b1 100644
--- a/octomap/src/CMakeLists.txt
+++ b/octomap/src/CMakeLists.txt
@@ -8,16 +8,14 @@ SET (octomap_SRCS
@@ -8,17 +8,16 @@ SET (octomap_SRCS
OcTreeNode.cpp
OcTreeStamped.cpp
ColorOcTree.cpp
- )
+)
+

-# dynamic and static libs, see CMake FAQ:
-ADD_LIBRARY( octomap SHARED ${octomap_SRCS})
Expand All @@ -20,10 +21,12 @@ index 9ac6dcb..526ad76 100644
)
-ADD_LIBRARY( octomap-static STATIC ${octomap_SRCS})
-SET_TARGET_PROPERTIES(octomap-static PROPERTIES OUTPUT_NAME "octomap")
-add_dependencies(octomap-static octomath-static)
+

TARGET_LINK_LIBRARIES(octomap octomath)

@@ -25,7 +23,7 @@ if(NOT EXISTS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap")
@@ -26,7 +25,7 @@ if(NOT EXISTS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap")
file(MAKE_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap")
endif()

Expand All @@ -32,25 +35,20 @@ index 9ac6dcb..526ad76 100644
APPEND FILE "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap/octomap-targets.cmake")

ADD_SUBDIRECTORY( testing )
@@ -66,7 +64,7 @@ TARGET_LINK_LIBRARIES(intersection_example octomap)
@@ -67,7 +66,7 @@ TARGET_LINK_LIBRARIES(intersection_example octomap)
ADD_EXECUTABLE(octree2pointcloud octree2pointcloud.cpp)
TARGET_LINK_LIBRARIES(octree2pointcloud octomap)

-install(TARGETS octomap octomap-static
+install(TARGETS octomap
EXPORT octomap-targets
INCLUDES DESTINATION include
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
${INSTALL_TARGETS_DEFAULT_ARGS}
@@ -84,4 +82,3 @@ install(TARGETS
compare_octrees
${INSTALL_TARGETS_DEFAULT_ARGS}
)
-
diff --git a/octomap/src/math/CMakeLists.txt b/octomap/src/math/CMakeLists.txt
index 22127ad..cd256c7 100644
index 3b47ec4..6a75170 100644
--- a/octomap/src/math/CMakeLists.txt
+++ b/octomap/src/math/CMakeLists.txt
@@ -5,26 +5,22 @@ SET (octomath_SRCS
@@ -5,24 +5,22 @@ SET (octomath_SRCS
)


Expand All @@ -60,10 +58,8 @@ index 22127ad..cd256c7 100644
SET_TARGET_PROPERTIES( octomath PROPERTIES
VERSION ${OCTOMAP_VERSION}
SOVERSION ${OCTOMAP_SOVERSION}
INSTALL_NAME_DIR ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY} # this seems to be necessary for MacOS X
)
-# INSTALL_NAME_DIR seems to be necessary for MacOS X
-

-ADD_LIBRARY( octomath-static STATIC ${octomath_SRCS})
-SET_TARGET_PROPERTIES(octomath-static PROPERTIES OUTPUT_NAME "octomath")

Expand All @@ -78,5 +74,5 @@ index 22127ad..cd256c7 100644
-install(TARGETS octomath octomath-static
+install(TARGETS octomath
EXPORT octomap-targets
INCLUDES DESTINATION include
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
${INSTALL_TARGETS_DEFAULT_ARGS}
2 changes: 1 addition & 1 deletion ports/octomap/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: octomap
Version: 2017-03-11-8
Version: 1.9.5
Homepage: https://octomap.github.io/
Description: An Efficient Probabilistic 3D Mapping Framework Based on Octrees
4 changes: 2 additions & 2 deletions ports/octomap/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO OctoMap/octomap
REF cefed0c1d79afafa5aeb05273cf1246b093b771c
SHA512 8fdea8b33680488d41e570d55ff88c20b923efb9d48238031f9b96d2e3917dbe7e49699769de63794f4b1d24e40a99615151e72487f30de340a3abf6522ea156
REF v1.9.5
SHA512 e58c6d33c351b14e9596e18a8702715d167c136fd029b1078ddd13a5926fe451d3b619231b5a8ccfb64b6e5fc6db8b57e6ef329099828d2f5195c0988700b581
HEAD_REF master
PATCHES
"001-fix-exported-targets.patch"
Expand Down