CMake: Check `WIN32` instead of `CMAKE_SYSTEM_NAME STREQUAL Windows`
This commit is contained in:
parent
d32e47cfde
commit
56fcc97f6d
|
@ -299,7 +299,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
target_link_libraries(common PUBLIC dl rt)
|
target_link_libraries(common PUBLIC dl rt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(WIN32)
|
||||||
target_sources(common PRIVATE HRWrap.h HRWrap.cpp)
|
target_sources(common PRIVATE HRWrap.h HRWrap.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ add_subdirectory(OGL)
|
||||||
add_subdirectory(Null)
|
add_subdirectory(Null)
|
||||||
add_subdirectory(Software)
|
add_subdirectory(Software)
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(WIN32)
|
||||||
add_subdirectory(D3DCommon)
|
add_subdirectory(D3DCommon)
|
||||||
add_subdirectory(D3D)
|
add_subdirectory(D3D)
|
||||||
add_subdirectory(D3D12)
|
add_subdirectory(D3D12)
|
||||||
|
|
Loading…
Reference in New Issue