Skip to content

Commit

Permalink
Fix PCL compile tools (#3301)
Browse files Browse the repository at this point in the history
Add missing boost definition using a patch.

Better compile from HEAD.
  • Loading branch information
claudiofantacci authored and ras0219-msft committed Apr 24, 2018
1 parent de4edd0 commit f0767d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ports/pcl/boost_uuid_random_generator_compat.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0405dca2..00e5238e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -168,6 +168,8 @@ if(CMAKE_COMPILER_IS_MSVC)
endif()
endif()

+add_definitions(-DBOOST_UUID_RANDOM_GENERATOR_COMPAT)
+
if(CMAKE_COMPILER_IS_PATHSCALE)
if("${CMAKE_CXX_FLAGS}" STREQUAL "")
SET(CMAKE_CXX_FLAGS "-Wno-uninitialized -zerouv -pthread -mp")
1 change: 1 addition & 0 deletions ports/pcl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ vcpkg_apply_patches(
"${CMAKE_CURRENT_LIST_DIR}/find_openni2.patch"
"${CMAKE_CURRENT_LIST_DIR}/find_cuda.patch"
"${CMAKE_CURRENT_LIST_DIR}/vs2017-15.4-workaround.patch"
"${CMAKE_CURRENT_LIST_DIR}/boost_uuid_random_generator_compat.patch"
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PCL_SHARED_LIBS)
Expand Down

0 comments on commit f0767d3

Please sign in to comment.