Fix PCL compile tools (#3301)

Add missing boost definition using a patch.

Better compile from HEAD.
This commit is contained in:
Claudio Fantacci 2018-04-24 20:09:12 +02:00 committed by Robert Schumacher
parent de4edd0e8c
commit f0767d3bd9
2 changed files with 14 additions and 0 deletions

View File

@ -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")

View File

@ -18,6 +18,7 @@ vcpkg_apply_patches(
"${CMAKE_CURRENT_LIST_DIR}/find_openni2.patch" "${CMAKE_CURRENT_LIST_DIR}/find_openni2.patch"
"${CMAKE_CURRENT_LIST_DIR}/find_cuda.patch" "${CMAKE_CURRENT_LIST_DIR}/find_cuda.patch"
"${CMAKE_CURRENT_LIST_DIR}/vs2017-15.4-workaround.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) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PCL_SHARED_LIBS)