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()