CMake: Check `WIN32` instead of `CMAKE_SYSTEM_NAME STREQUAL Windows`

This commit is contained in:
Pokechu22 2023-04-06 18:37:45 -07:00
parent d32e47cfde
commit 56fcc97f6d
2 changed files with 2 additions and 2 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()

View File

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