2021-11-05 15:24:45 +08:00
|
|
|
From 116e665df611242ea0575a62478c31ec03e78fcc Mon Sep 17 00:00:00 2001
|
|
|
|
From: raahilsha-z <raahil.sha@zimaging.io>
|
|
|
|
Date: Wed, 7 Jul 2021 15:53:49 -0400
|
|
|
|
Subject: [PATCH] add gcc version check
|
2021-05-27 05:48:21 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
CMakeLists.txt | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
2021-02-05 05:35:20 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2021-11-05 15:24:45 +08:00
|
|
|
index 63b38df68..29f79d31b 100644
|
2021-02-05 05:35:20 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-11-05 15:24:45 +08:00
|
|
|
@@ -311,6 +311,10 @@ if(NOT (${FLANN_LIBRARY_TYPE} MATCHES ${PCL_FLANN_REQUIRED_TYPE}) AND NOT (${PCL
|
|
|
|
message(FATAL_ERROR "Flann was selected with ${PCL_FLANN_REQUIRED_TYPE} but found as ${FLANN_LIBRARY_TYPE}")
|
2021-05-27 05:48:21 +08:00
|
|
|
endif()
|
2021-02-05 05:35:20 +08:00
|
|
|
|
|
|
|
+if(UNIX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
|
|
|
|
+ set (CMAKE_CXX_STANDARD 17)
|
|
|
|
+endif()
|
|
|
|
+
|
2021-11-05 15:24:45 +08:00
|
|
|
# libusb
|
2021-02-05 05:35:20 +08:00
|
|
|
option(WITH_LIBUSB "Build USB RGBD-Camera drivers" TRUE)
|
|
|
|
if(WITH_LIBUSB)
|
2021-05-27 05:48:21 +08:00
|
|
|
--
|
2021-11-05 15:24:45 +08:00
|
|
|
2.32.0.windows.1
|
2021-05-27 05:48:21 +08:00
|
|
|
|