File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ if(VulkanHeaders_FOUND)
3535 )
3636endif ()
3737
38- if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
38+ target_link_libraries (runtime_list openxr_loader)
39+ if (MSVC )
3940 target_compile_options (runtime_list PRIVATE /Zc:wchar_t /Zc:forScope /W4 /WX)
40- target_link_libraries (runtime_list openxr_loader)
4141endif ()
4242
4343if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
4444 target_compile_options (runtime_list PRIVATE -Wall)
45- target_link_libraries (runtime_list openxr_loader pthread)
45+ target_link_libraries (runtime_list pthread)
4646endif ()
4747
4848set_target_properties (runtime_list PROPERTIES FOLDER ${TESTS_FOLDER} )
Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ if(VulkanHeaders_FOUND)
4343endif ()
4444
4545if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
46- target_compile_definitions (loader_test PRIVATE _CRT_SECURE_NO_WARNINGS)
47- target_compile_options (loader_test PRIVATE /Zc:wchar_t /Zc:forScope /W4 /WX)
46+ if (MSVC )
47+ target_compile_definitions (loader_test PRIVATE _CRT_SECURE_NO_WARNINGS)
48+ target_compile_options (loader_test PRIVATE /Zc:wchar_t /Zc:forScope /W4 /WX)
49+ endif ()
4850 target_link_libraries (loader_test openxr_loader opengl32 d3d11)
4951elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
5052 target_compile_options (
You can’t perform that action at this time.
0 commit comments