mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
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:
parent
d7089f182b
commit
8992376e6a
|
@ -126,7 +126,7 @@ if(ANDROID)
|
||||||
find_library(ANDROID_LIBRARY android)
|
find_library(ANDROID_LIBRARY android)
|
||||||
find_library(ANDROID_LOG_LIBRARY log)
|
find_library(ANDROID_LOG_LIBRARY log)
|
||||||
endif()
|
endif()
|
||||||
if(MSVC)
|
if(WIN32)
|
||||||
find_package(wil CONFIG)
|
find_package(wil CONFIG)
|
||||||
set(D3D11_LIBRARY d3d11)
|
set(D3D11_LIBRARY d3d11)
|
||||||
set(D3D12_LIBRARY d3d12)
|
set(D3D12_LIBRARY d3d12)
|
||||||
|
@ -138,7 +138,7 @@ endif()
|
||||||
find_package(Sanitizers MODULE)
|
find_package(Sanitizers MODULE)
|
||||||
|
|
||||||
add_library(xrt-pthreads INTERFACE)
|
add_library(xrt-pthreads INTERFACE)
|
||||||
if(MSVC)
|
if(WIN32)
|
||||||
find_package(pthreads_windows REQUIRED)
|
find_package(pthreads_windows REQUIRED)
|
||||||
target_link_libraries(xrt-pthreads INTERFACE PThreads4W::PThreads4W_CXXEXC)
|
target_link_libraries(xrt-pthreads INTERFACE PThreads4W::PThreads4W_CXXEXC)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in a new issue