From c31236096d3b02bb0bba0d219546c626ae1d42a1 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 15 Jun 2019 22:25:22 +0200 Subject: [PATCH] Build volk_gnsssdr with C++20 with clang++ if available --- .../libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt index 86b4eab9d..4dc040d43 100644 --- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt +++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/CMakeLists.txt @@ -138,7 +138,11 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(CMAKE_CXX_STANDARD 14) else() if(${FILESYSTEM_FOUND}) - set(CMAKE_CXX_STANDARD 17) + if(CMAKE_VERSION VERSION_LESS 3.12) + set(CMAKE_CXX_STANDARD 17) + else() + set(CMAKE_CXX_STANDARD 20) + endif() set(CMAKE_CXX_STANDARD_REQUIRED ON) else() set(CMAKE_CXX_STANDARD 14)