vcpkg/ports/pcl/add-gcc-version-check.patch
NancyLi1013 05392981d3
[pcl] Add gcc version check (#9231)
* [pcl] Add compile options on unix platform

* Add versions

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
2021-02-04 13:35:20 -08:00

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)