From 2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 30 Aug 2018 00:42:04 +0200 Subject: sync with upstream --- cmake/scripts/common/ArchSetup.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmake/scripts/common/ArchSetup.cmake') diff --git a/cmake/scripts/common/ArchSetup.cmake b/cmake/scripts/common/ArchSetup.cmake index c97929e..4704193 100644 --- a/cmake/scripts/common/ArchSetup.cmake +++ b/cmake/scripts/common/ArchSetup.cmake @@ -55,7 +55,7 @@ macro(check_builtin func var) endmacro() -# -------- Main script --------- +# -------- Main script --------- message(STATUS "System type: ${CMAKE_SYSTEM_NAME}") if(WITH_CPU) @@ -157,7 +157,8 @@ if(PLATFORM_DEFINES) add_options(ALL_LANGUAGES ALL_BUILDS ${PLATFORM_DEFINES}) endif() -if(CMAKE_BUILD_TYPE STREQUAL "Debug") - add_options (ALL_LANGUAGES DEBUG "-g" "-D_DEBUG" "-Wall") +if(NOT MSVC) + add_options(ALL_LANGUAGES ALL_BUILDS "-Wall") + add_options(ALL_LANGUAGES DEBUG "-g" "-D_DEBUG") endif() -- cgit v1.2.3