From 02028987328667f5bc50a6cb0bf31edec6668d39 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 20 Nov 2020 17:47:13 -0500 Subject: [PATCH] Updated build to use C++17 by default --- cmake/CXXSniffer.cmake | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmake/CXXSniffer.cmake b/cmake/CXXSniffer.cmake index 4fe1e6e90..a2d0ba222 100644 --- a/cmake/CXXSniffer.cmake +++ b/cmake/CXXSniffer.cmake @@ -1,15 +1,15 @@ -message ("-- Configuring C++14") +message ("-- Configuring C++17") message ("-- System: ${CMAKE_SYSTEM_NAME}") include (CheckCXXCompilerFlag) -CHECK_CXX_COMPILER_FLAG("-std=c++14" _HAS_CXX14) +CHECK_CXX_COMPILER_FLAG("-std=c++17" _HAS_CXX17) -if (_HAS_CXX14) - set (_CXX14_FLAGS "-std=c++14") -else (_HAS_CXX14) - message (FATAL_ERROR "C++14 support missing. Try upgrading your C++ compiler. If you have a good reason for using an outdated compiler, please let us know at support@gothenburgbitfactory.org.") -endif (_HAS_CXX14) +if (_HAS_CXX17) + set (_CXX14_FLAGS "-std=c++17") +else (_HAS_CXX17) + message (FATAL_ERROR "C++17 support missing. Try upgrading your C++ compiler. If you have a good reason for using an outdated compiler, please let us know at support@gothenburgbitfactory.org.") +endif (_HAS_CXX17) if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") set (LINUX true)