From 2efbe4ec6f211326c395f2b0a075de2ce07a2d4a Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Fri, 28 Oct 2016 18:58:39 -0700 Subject: [vcpkg.targets] Change VCPkg casing to Vcpkg --- scripts/buildsystems/msbuild/vcpkg.targets | 44 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'scripts') diff --git a/scripts/buildsystems/msbuild/vcpkg.targets b/scripts/buildsystems/msbuild/vcpkg.targets index 3a74099f0..0d89fedd3 100644 --- a/scripts/buildsystems/msbuild/vcpkg.targets +++ b/scripts/buildsystems/msbuild/vcpkg.targets @@ -1,56 +1,56 @@ - true - x86-windows + true + x86-windows - true - x86-uwp + true + x86-uwp - true - x64-windows + true + x64-windows - true - x64-uwp + true + x64-uwp - true - arm-uwp + true + arm-uwp - - $(Configuration) + + $(Configuration) - $(MSBuildThisFileDirectory)..\..\..\installed\$(VCPkgTriplet)\ + $(MSBuildThisFileDirectory)..\..\..\installed\$(VcpkgTriplet)\ - + - $(VCPkgRoot)debug\lib\*.lib;%(AdditionalDependencies) - $(VCPkgRoot)lib\*.lib;%(AdditionalDependencies) + $(VcpkgRoot)debug\lib\*.lib;%(AdditionalDependencies) + $(VcpkgRoot)lib\*.lib;%(AdditionalDependencies) - $(VCPkgRoot)include;%(AdditionalIncludeDirectories) + $(VcpkgRoot)include;%(AdditionalIncludeDirectories) - + - - -- cgit v1.2.3 From 0b54a01149a515e5603bb81d9d89ee9827b6c498 Mon Sep 17 00:00:00 2001 From: kumar8600 Date: Sun, 30 Oct 2016 18:46:24 +0900 Subject: Add cl.exe path based architecture detection for CMake toolchain --- scripts/buildsystems/vcpkg.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index 88acc8436..649e5967a 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -11,7 +11,14 @@ if(NOT VCPKG_TOOLCHAIN) elseif(CMAKE_GENERATOR MATCHES "^Visual Studio 14 2015 ARM$") set(_VCPKG_TARGET_TRIPLET_ARCH arm) else() - set(_VCPKG_TARGET_TRIPLET_ARCH x86) + find_program(_VCPKG_CL cl) + if(_VCPKG_CL MATCHES "amd64/cl.exe$") + set(_VCPKG_TARGET_TRIPLET_ARCH x64) + elseif(_VCPKG_CL MATCHES "arm/cl.exe$") + set(_VCPKG_TARGET_TRIPLET_ARCH arm) + else() + set(_VCPKG_TARGET_TRIPLET_ARCH x86) + endif() endif() endif() -- cgit v1.2.3 From 956f3b110ba2826899c97ab28dafc04ca36b4b20 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Mon, 31 Oct 2016 09:37:13 -0700 Subject: [vcpkg-cmake] Added slightly more error checking --- scripts/buildsystems/vcpkg.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index 649e5967a..590b4994a 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -10,14 +10,18 @@ if(NOT VCPKG_TOOLCHAIN) set(_VCPKG_TARGET_TRIPLET_ARCH x64) elseif(CMAKE_GENERATOR MATCHES "^Visual Studio 14 2015 ARM$") set(_VCPKG_TARGET_TRIPLET_ARCH arm) + elseif(CMAKE_GENERATOR MATCHES "^Visual Studio 14 2015$") + set(_VCPKG_TARGET_TRIPLET_ARCH x86) else() find_program(_VCPKG_CL cl) if(_VCPKG_CL MATCHES "amd64/cl.exe$") set(_VCPKG_TARGET_TRIPLET_ARCH x64) elseif(_VCPKG_CL MATCHES "arm/cl.exe$") set(_VCPKG_TARGET_TRIPLET_ARCH arm) - else() + elseif(_VCPKG_CL MATCHES "x86/cl.exe$") set(_VCPKG_TARGET_TRIPLET_ARCH x86) + else() + message(FATAL_ERROR "Unable to determine target architecture.") endif() endif() endif() -- cgit v1.2.3