mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:28:59 +08:00
05392981d3
* [pcl] Add compile options on unix platform * Add versions Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
16 lines
411 B
Diff
16 lines
411 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 6c452ce..2c50b8d 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -303,6 +303,10 @@ set(FLANN_USE_STATIC ON)
|
|
find_package(FLANN 1.7.0 REQUIRED)
|
|
find_package(lz4)
|
|
|
|
+if(UNIX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
|
|
+ set (CMAKE_CXX_STANDARD 17)
|
|
+endif()
|
|
+
|
|
# libusb-1.0
|
|
option(WITH_LIBUSB "Build USB RGBD-Camera drivers" TRUE)
|
|
if(WITH_LIBUSB)
|