diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2014-07-28 18:19:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-31 18:08:52 (GMT) |
commit | 592098e2d5a00d396e84d7a5e51ae6c550a21fc6 (patch) | |
tree | 8c1a5a40ce33cf0b5f03a1b390b1d477f5824df4 /Modules | |
parent | aa42a78f523f3db5e849663a7c55d949dd25bfb0 (diff) | |
download | CMake-592098e2d5a00d396e84d7a5e51ae6c550a21fc6.zip CMake-592098e2d5a00d396e84d7a5e51ae6c550a21fc6.tar.gz CMake-592098e2d5a00d396e84d7a5e51ae6c550a21fc6.tar.bz2 |
Define 'WINDOWS_PHONE' and 'WINDOWS_STORE' variables
Set one of these when CMAKE_SYSTEM_NAME is "WindowsPhone" or
"WindowsStore", respectively.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Windows.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/Windows.cmake b/Modules/Platform/Windows.cmake index 7e97111..9a937a7 100644 --- a/Modules/Platform/Windows.cmake +++ b/Modules/Platform/Windows.cmake @@ -2,6 +2,10 @@ set(WIN32 1) if(CMAKE_SYSTEM_NAME STREQUAL "WindowsCE") set(WINCE 1) +elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone") + set(WINDOWS_PHONE 1) +elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") + set(WINDOWS_STORE 1) endif() set(CMAKE_STATIC_LIBRARY_PREFIX "") |