mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
CMake: add DOLPHIN_CXX_FLAGS option
Lets you do fun stuff like turning off warnings globally, then re-enabling all warnings + extra warnings + warnings as errors for Dolphin only.
This commit is contained in:
parent
0043a2cf3c
commit
73711ef995
@ -1,3 +1,8 @@
|
||||
option(DOLPHIN_CXX_FLAGS "Flags used to compile Dolphin-only sources" "")
|
||||
if(DOLPHIN_CXX_FLAGS)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DOLPHIN_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
add_definitions(-DNOMINMAX)
|
||||
add_definitions(-DUNICODE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user