From 73711ef995b42e0f5afa49cfdefa5643733d21a8 Mon Sep 17 00:00:00 2001 From: Michael M Date: Mon, 23 Oct 2017 10:59:54 -0700 Subject: [PATCH] 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. --- Source/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 8e94d76118..a3e567a541 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -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)