From 8992376e6a15b1261c2e0c6fbf2468b1e1c7ba1b Mon Sep 17 00:00:00 2001 From: Bailey Morgan Date: Thu, 10 Oct 2024 15:50:27 -0400 Subject: [PATCH] cmake: Altered improper usage of MSVC to WIN32 to unblock building with clang on windows Part-of: --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74d0bd7f9..6c7956b4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()