Skip to content

Commit

Permalink
Merge pull request #4703 from ligfx/cmake_cxx_standard
Browse files Browse the repository at this point in the history
CMake: Use CMAKE_CXX_STANDARD instead of passing -std=c++14
  • Loading branch information
Helios747 committed Mar 16, 2017
2 parents 8e6d256 + c464029 commit 3b1dae5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/CMakeLists.txt
@@ -1,7 +1,6 @@
check_and_add_flag(CXX14 -std=c++14)
if(NOT FLAG_CXX_CXX14)
check_and_add_flag(HAS_CXX1Y -std=c++1y)
endif()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-DNOMINMAX)
Expand Down

0 comments on commit 3b1dae5

Please sign in to comment.