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)