mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-14 05:20:50 -05:00
Define 'WINDOWS_PHONE' and 'WINDOWS_STORE' variables
Set one of these when CMAKE_SYSTEM_NAME is "WindowsPhone" or "WindowsStore", respectively.
This commit is contained in:
committed by
Brad King
parent
aa42a78f52
commit
592098e2d5
@@ -190,6 +190,8 @@ Variables that Describe the System
|
||||
/variable/MSVC_VERSION
|
||||
/variable/UNIX
|
||||
/variable/WIN32
|
||||
/variable/WINDOWS_PHONE
|
||||
/variable/WINDOWS_STORE
|
||||
/variable/XCODE_VERSION
|
||||
|
||||
Variables that Control the Build
|
||||
|
||||
5
Help/variable/WINDOWS_PHONE.rst
Normal file
5
Help/variable/WINDOWS_PHONE.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
WINDOWS_PHONE
|
||||
-------------
|
||||
|
||||
True when the :variable:`CMAKE_SYSTEM_NAME` variable is set
|
||||
to ``WindowsPhone``.
|
||||
5
Help/variable/WINDOWS_STORE.rst
Normal file
5
Help/variable/WINDOWS_STORE.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
WINDOWS_STORE
|
||||
-------------
|
||||
|
||||
True when the :variable:`CMAKE_SYSTEM_NAME` variable is set
|
||||
to ``WindowsStore``.
|
||||
@@ -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 "")
|
||||
|
||||
Reference in New Issue
Block a user