mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 16:16:05 +00:00
Merge pull request #4703 from ligfx/cmake_cxx_standard
CMake: Use CMAKE_CXX_STANDARD instead of passing -std=c++14
This commit is contained in:
commit
3b1dae5642
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue