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:
Michael M 2017-10-23 10:59:54 -07:00 committed by Tillmann Karras
parent 0043a2cf3c
commit 73711ef995
1 changed files with 5 additions and 0 deletions

View File

@ -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)