Fix to actually use C++14
This commit is contained in:
parent
0b6254a4fb
commit
12c7d8f1c9
@ -24,12 +24,16 @@ if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-std=c++14
|
|
||||||
#-fdiagnostics-color # forces colored output when using ninja
|
#-fdiagnostics-color # forces colored output when using ninja
|
||||||
-Wall
|
-Wall
|
||||||
-Wsign-compare
|
-Wsign-compare
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
if(NOSTALGIA_IDE_BUILD STREQUAL "ON")
|
if(NOSTALGIA_IDE_BUILD STREQUAL "ON")
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user