2021-11-05 03:24:45 -04: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-26 23:48:21 +02: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 03:24:45 -04:00
|
|
|
index 63b38df68..29f79d31b 100644
|
2021-02-05 05:35:20 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-11-05 03:24:45 -04:00
|
|
|
@@ -311,6 +311,10 @@ if(NOT (${FLANN_LIBRARY_TYPE} MATCHES ${PCL_FLANN_REQUIRED_TYPE}) AND NOT (${PCL
|
2024-01-11 02:02:56 +01:00
|
|
|
endif()
|
2021-05-26 23:48:21 +02: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 03:24:45 -04:00
|
|
|
# libusb
|
2021-02-05 05:35:20 +08:00
|
|
|
option(WITH_LIBUSB "Build USB RGBD-Camera drivers" TRUE)
|
|
|
|
if(WITH_LIBUSB)
|
2021-05-26 23:48:21 +02:00
|
|
|
--
|
2021-11-05 03:24:45 -04:00
|
|
|
2.32.0.windows.1
|
2021-05-26 23:48:21 +02:00
|
|
|
|