Skip to content

Commit 8ddc4e0

Browse files
committed
Adopt compiler flags for MSVC
Add a branch for MSVC compiler flags in tests\CMakeLists.txt
1 parent 7253798 commit 8ddc4e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ set(CTEST_CUSTOM_TESTS_IGNORE pkg-config--static)
55

66
# Executable
77
add_executable(raylib_test raylib_test.cpp)
8-
target_compile_options(raylib_test PRIVATE -Wall -Wextra -Wconversion -Wsign-conversion)
8+
if (MSVC)
9+
target_compile_options(raylib_test PRIVATE /Wall /W4)
10+
else()
11+
target_compile_options(raylib_test PRIVATE -Wall -Wextra -Wconversion -Wsign-conversion)
12+
endif()
913
target_link_libraries(raylib_test raylib-cpp raylib)
1014

1115
# Test

0 commit comments

Comments
 (0)