Merge pull request #11735 from Pokechu22/cmake-no-spirv-cross-on-linux

CMake: Don't include SPIRV-Cross except on Windows and macOS
This commit is contained in:
Mai
2023-04-06 23:11:14 -04:00
committed by GitHub
3 changed files with 7 additions and 3 deletions

View File

@ -299,7 +299,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(common PUBLIC dl rt)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
if(WIN32)
target_sources(common PRIVATE HRWrap.h HRWrap.cpp)
endif()