Skip to content

Commit f9decdb

Browse files
committed
m
1 parent 002d70c commit f9decdb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

CMakeLists.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,17 @@ target_compile_definitions(stackandconquer
6161
$<$<CONFIG:DEBUG>:QT_DISABLE_DEPRECATED_BEFORE=0x061000>
6262
)
6363

64-
target_compile_options(stackandconquer
65-
PRIVATE
66-
$<$<CONFIG:DEBUG>:-Wall -Wextra -pedantic>
67-
)
64+
if(MSVC)
65+
target_compile_options(stackandconquer
66+
PRIVATE
67+
$<$<CONFIG:DEBUG>:/W4 /permissive->
68+
)
69+
else()
70+
target_compile_options(stackandconquer
71+
PRIVATE
72+
$<$<CONFIG:DEBUG>:-Wall -Wextra -pedantic>
73+
)
74+
endif()
6875

6976
target_link_libraries(stackandconquer PRIVATE
7077
${QT_MAIN_VERSION}::Core

0 commit comments

Comments
 (0)