summaryrefslogtreecommitdiffstats
path: root/cmake/scripts/common/ArchSetup.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/scripts/common/ArchSetup.cmake')
-rw-r--r--cmake/scripts/common/ArchSetup.cmake7
1 files changed, 4 insertions, 3 deletions
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)
55endmacro() 55endmacro()
56 56
57 57
58# -------- Main script --------- 58# -------- Main script ---------
59message(STATUS "System type: ${CMAKE_SYSTEM_NAME}") 59message(STATUS "System type: ${CMAKE_SYSTEM_NAME}")
60 60
61if(WITH_CPU) 61if(WITH_CPU)
@@ -157,7 +157,8 @@ if(PLATFORM_DEFINES)
157 add_options(ALL_LANGUAGES ALL_BUILDS ${PLATFORM_DEFINES}) 157 add_options(ALL_LANGUAGES ALL_BUILDS ${PLATFORM_DEFINES})
158endif() 158endif()
159 159
160if(CMAKE_BUILD_TYPE STREQUAL "Debug") 160if(NOT MSVC)
161 add_options (ALL_LANGUAGES DEBUG "-g" "-D_DEBUG" "-Wall") 161 add_options(ALL_LANGUAGES ALL_BUILDS "-Wall")
162 add_options(ALL_LANGUAGES DEBUG "-g" "-D_DEBUG")
162endif() 163endif()
163 164