Better cmake UWP detection condition (use the same definition as vcpkg) (#4932)
* Better cmake UWP detection condition (use the same definition as vcpkg) * Update Config.cmake.in --------- Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
parent
93a0942c6a
commit
2f7728794d
@ -101,7 +101,7 @@ target_include_directories(
|
||||
|
||||
target_link_libraries(azure-identity PUBLIC Azure::azure-core)
|
||||
|
||||
if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
if(WIN32 AND NOT(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND CMAKE_SYSTEM_VERSION STREQUAL "10.0"))
|
||||
find_package(wil CONFIG REQUIRED)
|
||||
target_link_libraries(azure-identity PRIVATE WIL::WIL bcrypt crypt32)
|
||||
else()
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
include(CMakeFindDependencyMacro)
|
||||
find_dependency(azure-core-cpp)
|
||||
|
||||
if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
if(WIN32 AND NOT (CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND CMAKE_SYSTEM_VERSION STREQUAL "10.0"))
|
||||
find_dependency(wil)
|
||||
else()
|
||||
find_dependency(OpenSSL)
|
||||
|
||||
@ -20,10 +20,6 @@
|
||||
"name": "openssl",
|
||||
"platform": "!windows & !uwp"
|
||||
},
|
||||
{
|
||||
"name": "wil",
|
||||
"platform": "windows & !uwp"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
@ -31,6 +27,10 @@
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "wil",
|
||||
"platform": "windows & !uwp"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user