aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-05-28 13:07:20 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-05-28 13:07:20 -0700
commit334a35e4251eb3076594951550930aa9c46cec06 (patch)
tree80638802cfbe20d92001726000073ee143b99820 /scripts
parent2f154a05804d8c42330e6a7fc32251aa46de23b5 (diff)
downloadvcpkg-334a35e4251eb3076594951550930aa9c46cec06.tar.gz
vcpkg-334a35e4251eb3076594951550930aa9c46cec06.zip
[vcpkg-toolchain] Compare CMAKE_SYSTEM_NAME, not WINDOWS_STORE. Fixes #1179.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildsystems/vcpkg.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake
index 26fa020db..d3e1e814a 100644
--- a/scripts/buildsystems/vcpkg.cmake
+++ b/scripts/buildsystems/vcpkg.cmake
@@ -1,3 +1,6 @@
+# Mark variables as used so cmake doesn't complain about them
+set(CMAKE_TOOLCHAIN_FILE ${CMAKE_TOOLCHAIN_FILE})
+
if(NOT VCPKG_TOOLCHAIN)
if(CMAKE_GENERATOR_PLATFORM MATCHES "^[Ww][Ii][Nn]32$")
set(_VCPKG_TARGET_TRIPLET_ARCH x86)
@@ -32,7 +35,7 @@ if(NOT VCPKG_TOOLCHAIN)
endif()
endif()
- if(WINDOWS_STORE OR WINDOWS_PHONE)
+ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone")
set(_VCPKG_TARGET_TRIPLET_PLAT uwp)
else()
set(_VCPKG_TARGET_TRIPLET_PLAT windows)