mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[vcpkg.cmake] Remove Windows SDK detection. Let cmake detect it
This commit is contained in:
parent
ca58367c9a
commit
f9d4692749
@ -110,16 +110,6 @@ list(APPEND CMAKE_LIBRARY_PATH
|
||||
${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/manual-link
|
||||
)
|
||||
|
||||
if (NOT DEFINED CMAKE_SYSTEM_VERSION AND _VCPKG_TARGET_TRIPLET_PLAT MATCHES "windows|uwp")
|
||||
include(${_VCPKG_ROOT_DIR}/scripts/cmake/vcpkg_get_windows_sdk.cmake)
|
||||
# This is used as an implicit parameter for vcpkg_get_windows_sdk
|
||||
set(VCPKG_ROOT_DIR ${_VCPKG_ROOT_DIR})
|
||||
vcpkg_get_windows_sdk(WINDOWS_SDK_VERSION)
|
||||
unset(VCPKG_ROOT_DIR)
|
||||
set(CMAKE_SYSTEM_VERSION ${WINDOWS_SDK_VERSION} CACHE STRING "Windows SDK version")
|
||||
message(STATUS "Found Windows SDK ${WINDOWS_SDK_VERSION}")
|
||||
endif()
|
||||
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _programfiles)
|
||||
set(CMAKE_SYSTEM_IGNORE_PATH
|
||||
"${_programfiles}/OpenSSL"
|
||||
|
Loading…
x
Reference in New Issue
Block a user