diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/msvc.cmake | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index 6bbcae09..3009c14f 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -95,16 +95,14 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "" FORCE) endif() -if((CMAKE_GENERATOR STREQUAL "NMake Makefiles") OR (CMAKE_GENERATOR STREQUAL "NMake Makefiles JOM")) - if(CMAKE_PROJECT_NAME STREQUAL "opentrack") - set(warn-flag-found FALSE) - foreach (i CMAKE_CXX_FLAGS CMAKE_C_FLAGS) - string(REGEX MATCH "((^| )[-/][W][0-9]( |\$))" ret "${${i}}") - if(ret STREQUAL "") - set(${i} "-W3 ${${i}}" CACHE STRING "" FORCE) - endif() - endforeach() - endif() +if(CMAKE_PROJECT_NAME STREQUAL "opentrack") + set(warn-flag-found FALSE) + foreach (i CMAKE_CXX_FLAGS CMAKE_C_FLAGS) + string(REGEX MATCH "((^| )[-/][W][0-9]( |\$))" ret "${${i}}") + if(ret STREQUAL "") + set(${i} "-W3 ${${i}}" CACHE STRING "" FORCE) + endif() + endforeach() endif() set(CMAKE_RC_FLAGS "-nologo -DWIN32" CACHE STRING "" FORCE) |