Skip to content
Snippets Groups Projects
Commit 3454568e authored by Studer Gabriel's avatar Studer Gabriel
Browse files

use C++17 standard when compiling

parent cde7480f
No related branches found
No related tags found
No related merge requests found
...@@ -880,6 +880,9 @@ endmacro() ...@@ -880,6 +880,9 @@ endmacro()
macro(setup_compiler_flags) macro(setup_compiler_flags)
set(CMAKE_CXX_STANDARD 17)
if (WIN32) if (WIN32)
# add_definitions(-DBOOST_TEST_INCLUDED) # add_definitions(-DBOOST_TEST_INCLUDED)
...@@ -894,13 +897,8 @@ macro(setup_compiler_flags) ...@@ -894,13 +897,8 @@ macro(setup_compiler_flags)
#add_definitions(-NODEFAULTLIB:LIBCMTD.lib) #add_definitions(-NODEFAULTLIB:LIBCMTD.lib)
endif() endif()
if (CMAKE_COMPILER_IS_GNUCXX) if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "6.0")
# for older compilers we need to enable C++11 for Qt5
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
endif() endif()
endmacro() endmacro()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment