diff options
| author | Billy O'Neal <bion@microsoft.com> | 2020-07-06 12:42:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-06 12:42:35 -0700 |
| commit | 8eda81cc4dfbf9700cd36e280b6ad74d467ed9a3 (patch) | |
| tree | d13210931c83678f59a22c6f2614acdf6d36895c /ports/wincrypt | |
| parent | 58ff68ae41093573f56fae580a7ef6b339abe14e (diff) | |
| download | vcpkg-8eda81cc4dfbf9700cd36e280b6ad74d467ed9a3.tar.gz vcpkg-8eda81cc4dfbf9700cd36e280b6ad74d467ed9a3.zip | |
[opengl wincrypt winsock2] Use $ENV{WindowsSdkDir} instead of hard coding Windows SDK paths. (#12232)
Also delete vcpkg_get_program_files_32_bit because it was used in only one place.
Resolves #8288
Obsoletes #11421, #11261, #8329
Diffstat (limited to 'ports/wincrypt')
| -rw-r--r-- | ports/wincrypt/CONTROL | 2 | ||||
| -rw-r--r-- | ports/wincrypt/portfile.cmake | 13 |
2 files changed, 6 insertions, 9 deletions
diff --git a/ports/wincrypt/CONTROL b/ports/wincrypt/CONTROL index c83865407..615d2c3d9 100644 --- a/ports/wincrypt/CONTROL +++ b/ports/wincrypt/CONTROL @@ -1,3 +1,3 @@ Source: wincrypt -Version: 0.0-1 +Version: 0.0-2 Description: Windows Cryptography.
\ No newline at end of file diff --git a/ports/wincrypt/portfile.cmake b/ports/wincrypt/portfile.cmake index 5cb5a1b19..9eaedf3d2 100644 --- a/ports/wincrypt/portfile.cmake +++ b/ports/wincrypt/portfile.cmake @@ -1,14 +1,11 @@ -include(vcpkg_common_functions) - -vcpkg_get_program_files_32_bit(PROGRAM_FILES_32_BIT) vcpkg_get_windows_sdk(WINDOWS_SDK) if (WINDOWS_SDK MATCHES "10.") - set(LIBFILEPATH "${PROGRAM_FILES_32_BIT}\\Windows Kits\\10\\Lib\\${WINDOWS_SDK}\\um\\${TRIPLET_SYSTEM_ARCH}\\Crypt32.Lib") - set(HEADERSPATH "${PROGRAM_FILES_32_BIT}\\Windows Kits\\10\\Include\\${WINDOWS_SDK}\\um") + set(LIBFILEPATH "$ENV{WindowsSdkDir}Lib\\${WINDOWS_SDK}\\um\\${TRIPLET_SYSTEM_ARCH}\\Crypt32.Lib") + set(HEADERSPATH "$ENV{WindowsSdkDir}Include\\${WINDOWS_SDK}\\um") elseif(WINDOWS_SDK MATCHES "8.") - set(LIBFILEPATH "${PROGRAM_FILES_32_BIT}\\Windows Kits\\8.1\\Lib\\winv6.3\\um\\${TRIPLET_SYSTEM_ARCH}\\Crypt32.Lib") - set(HEADERSPATH "${PROGRAM_FILES_32_BIT}\\Windows Kits\\8.1\\Include\\um") + set(LIBFILEPATH "$ENV{WindowsSdkDir}Lib\\winv6.3\\um\\${TRIPLET_SYSTEM_ARCH}\\Crypt32.Lib") + set(HEADERSPATH "$ENV{WindowsSdkDir}Include\\um") else() message(FATAL_ERROR "Portfile not yet configured for Windows SDK with version: ${WINDOWS_SDK}") endif() @@ -27,4 +24,4 @@ elseif(WINDOWS_SDK MATCHES "8.") endif() # Allow empty include directory -set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
\ No newline at end of file +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) |
