Skip to content

Commit

Permalink
Triplet files now define variables for arch, linkage, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Oct 6, 2016
1 parent 8b4f7d4 commit 0fc610b
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 15 deletions.
11 changes: 6 additions & 5 deletions triplets/arm-uwp.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set(CMAKE_SYSTEM_NAME WindowsStore)
set(CMAKE_SYSTEM_VERSION 10.0)
set(VCPKG_TARGET_ARCHITECTURE arm)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_BUILD_SHARED_LIBS ON)

if(NOT CMAKE_GENERATOR MATCHES "Visual Studio 14 2015 ARM")
message(FATAL_ERROR "Visual Studio Generator must be used to target UWP")
endif()
set(VCPKG_CMAKE_SYSTEM_NAME WindowsStore)
set(VCPKG_CMAKE_SYSTEM_VERSION 10.0)
set(VCPKG_REQUIRE_GENERATOR "Visual Studio 14 2015 Win64")
11 changes: 6 additions & 5 deletions triplets/x64-uwp.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set(CMAKE_SYSTEM_NAME WindowsStore)
set(CMAKE_SYSTEM_VERSION 10.0)
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_BUILD_SHARED_LIBS ON)

if(NOT CMAKE_GENERATOR MATCHES "Visual Studio 14 2015 Win64")
message(FATAL_ERROR "Visual Studio Generator must be used to target UWP.")
endif()
set(VCPKG_CMAKE_SYSTEM_NAME WindowsStore)
set(VCPKG_CMAKE_SYSTEM_VERSION 10.0)
set(VCPKG_REQUIRE_GENERATOR "Visual Studio 14 2015 Win64")
3 changes: 3 additions & 0 deletions triplets/x64-windows-static.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_BUILD_SHARED_LIBS OFF)
4 changes: 4 additions & 0 deletions triplets/x64-windows.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_BUILD_SHARED_LIBS ON)

11 changes: 6 additions & 5 deletions triplets/x86-uwp.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set(CMAKE_SYSTEM_NAME WindowsStore)
set(CMAKE_SYSTEM_VERSION 10.0)
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_BUILD_SHARED_LIBS ON)

if(NOT CMAKE_GENERATOR MATCHES "Visual Studio 14 2015")
message(FATAL_ERROR "Visual Studio Generator must be used to target UWP")
endif()
set(VCPKG_CMAKE_SYSTEM_NAME WindowsStore)
set(VCPKG_CMAKE_SYSTEM_VERSION 10.0)
set(VCPKG_REQUIRE_GENERATOR "Visual Studio 14 2015 Win64")
3 changes: 3 additions & 0 deletions triplets/x86-windows-static.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_BUILD_SHARED_LIBS OFF)
3 changes: 3 additions & 0 deletions triplets/x86-windows.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_BUILD_SHARED_LIBS ON)

0 comments on commit 0fc610b

Please sign in to comment.