diff options
author | Rechi <Rechi@users.noreply.github.com> | 2019-05-23 09:57:59 +0200 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2019-05-23 09:57:59 +0200 |
commit | 1d62372b369a41188cb11baf0fdad4b8eb51da09 (patch) | |
tree | c743b2038c857afca7d24f4f02d2ce4d54c032c9 /cmake/scripts/common/CompilerSettings.cmake | |
parent | 1e231ee292390c1b01fdf152c00b10fbc8a245c2 (diff) |
[cmake] use CMAKE_CXX_STANDARD to set WindowsStore specific C++ standard
Diffstat (limited to 'cmake/scripts/common/CompilerSettings.cmake')
-rw-r--r-- | cmake/scripts/common/CompilerSettings.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/scripts/common/CompilerSettings.cmake b/cmake/scripts/common/CompilerSettings.cmake index 48cc69bd65..136ebd2b29 100644 --- a/cmake/scripts/common/CompilerSettings.cmake +++ b/cmake/scripts/common/CompilerSettings.cmake @@ -1,6 +1,7 @@ # Languages and global compiler settings -set(CMAKE_CXX_STANDARD 11) +if(NOT DEFINED CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 11) + set(CMAKE_CXX_STANDARD 11) +endif() set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS} -x assembler-with-cpp") - |