diff options
| author | Mai <mai.iam2048@gmail.com> | 2023-04-06 23:11:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-06 23:11:14 -0400 |
| commit | aaedc2827d7399a7144830f5ba0535ba95dcabaf (patch) | |
| tree | 3cedf00c4a980669e80153bb2666d7ee9690a1ee /Source/Core | |
| parent | 5686c614eca66e71d517daa94020d28f1f794cd8 (diff) | |
| parent | 969d5e0fbeef8cd2e1a6a3a59be53b4569912fd6 (diff) | |
Merge pull request #11735 from Pokechu22/cmake-no-spirv-cross-on-linux
CMake: Don't include SPIRV-Cross except on Windows and macOS
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index 1177363ec3..8269290729 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -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() diff --git a/Source/Core/VideoBackends/CMakeLists.txt b/Source/Core/VideoBackends/CMakeLists.txt index 55b44f8c5d..9d20d6d2b5 100644 --- a/Source/Core/VideoBackends/CMakeLists.txt +++ b/Source/Core/VideoBackends/CMakeLists.txt @@ -2,7 +2,7 @@ add_subdirectory(OGL) add_subdirectory(Null) add_subdirectory(Software) -if(CMAKE_SYSTEM_NAME STREQUAL "Windows") +if(WIN32) add_subdirectory(D3DCommon) add_subdirectory(D3D) add_subdirectory(D3D12) |
