summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-28 18:12:39 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-28 20:21:45 (GMT)
commit1acde6b003812e9964bdf67db5c1ce68a566e675 (patch)
tree664b64d352a97c9d2aa68b74bdb2d89594e08ada /Modules/Platform
parentf188845237cdfee74dae0658888a61c855e285b3 (diff)
downloadCMake-1acde6b003812e9964bdf67db5c1ce68a566e675.zip
CMake-1acde6b003812e9964bdf67db5c1ce68a566e675.tar.gz
CMake-1acde6b003812e9964bdf67db5c1ce68a566e675.tar.bz2
MSVC: Use STREQUAL to check for WindowsCE
In the Platform/Windows-MSVC module it is not necessary to use MATCHES because we are comparing against an exact string.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-MSVC.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake
index 8e988c9..5b57ee7 100644
--- a/Modules/Platform/Windows-MSVC.cmake
+++ b/Modules/Platform/Windows-MSVC.cmake
@@ -38,7 +38,7 @@ endif()
set(WIN32 1)
-if(CMAKE_SYSTEM_NAME MATCHES "WindowsCE")
+if(CMAKE_SYSTEM_NAME STREQUAL "WindowsCE")
set(CMAKE_CREATE_WIN32_EXE "/entry:WinMainCRTStartup")
set(CMAKE_CREATE_CONSOLE_EXE "/entry:mainACRTStartup")
set(_PLATFORM_LINK_FLAGS " /subsystem:windowsce")