cmake: Altered improper usage of MSVC to WIN32 to unblock building with clang on windows

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2335>
This commit is contained in:
Bailey Morgan 2024-10-10 15:50:27 -04:00
parent d7089f182b
commit 8992376e6a

View file

@ -126,7 +126,7 @@ if(ANDROID)
find_library(ANDROID_LIBRARY android)
find_library(ANDROID_LOG_LIBRARY log)
endif()
if(MSVC)
if(WIN32)
find_package(wil CONFIG)
set(D3D11_LIBRARY d3d11)
set(D3D12_LIBRARY d3d12)
@ -138,7 +138,7 @@ endif()
find_package(Sanitizers MODULE)
add_library(xrt-pthreads INTERFACE)
if(MSVC)
if(WIN32)
find_package(pthreads_windows REQUIRED)
target_link_libraries(xrt-pthreads INTERFACE PThreads4W::PThreads4W_CXXEXC)
else()