Skip to content

Commit 479b79f

Browse files
committed
build: Windows does not imply MSVC
1 parent 0a5fd5c commit 479b79f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tests/loader_test/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ if(VulkanHeaders_FOUND)
4141
endif()
4242

4343
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
44-
target_compile_definitions(loader_test PRIVATE _CRT_SECURE_NO_WARNINGS)
45-
target_compile_options(loader_test PRIVATE /Zc:wchar_t /Zc:forScope /W4 /WX)
44+
if(MSVC)
45+
target_compile_definitions(loader_test PRIVATE _CRT_SECURE_NO_WARNINGS)
46+
target_compile_options(loader_test PRIVATE /Zc:wchar_t /Zc:forScope /W4 /WX)
47+
endif()
4648
target_link_libraries(loader_test openxr_loader opengl32 d3d11)
4749
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
4850
target_compile_options(

0 commit comments

Comments
 (0)