mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
15 lines
579 B
CMake
15 lines
579 B
CMake
|
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||
|
set(VCPKG_TARGET_IS_WINDOWS 1)
|
||
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||
|
set(VCPKG_TARGET_IS_UWP 1)
|
||
|
endif()
|
||
|
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||
|
set(VCPKG_TARGET_IS_OSX 1)
|
||
|
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||
|
set(VCPKG_TARGET_IS_LINUX 1)
|
||
|
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||
|
set(VCPKG_TARGET_IS_ANDROID 1)
|
||
|
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||
|
set(VCPKG_TARGET_IS_FREEBSD 1)
|
||
|
endif()
|