summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-21 08:45:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-03-21 08:45:49 +0100
commit939e82305e6d654a4dec2dafe471c42b2d07e540 (patch)
treee2b9adac212ef7460038e3c5ee64e5107886b686 /cmake
parent7873ba73fbb028aa42b3849d10c2d60de7d00717 (diff)
cmake/msvc: remove nosensical conditional
Diffstat (limited to 'cmake')
-rw-r--r--cmake/msvc.cmake18
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)