blob: 9d15381f8d0ba38164ab6c8aaf516f35b40dea8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 136400d..f54a722 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,15 +15,15 @@ include(CMakePushCheckState)
# Maximum warnings level & warnings as error
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if (CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC") # clang-cl
- add_compile_options("/W4;/WX;")
+ add_compile_options("/W4")
else() # clang native
- add_compile_options("-Wall;-Wextra;-pedantic;-Werror")
+ add_compile_options("-Wall;-Wextra;-pedantic")
endif()
else()
add_compile_options(
- "$<$<CXX_COMPILER_ID:MSVC>:/W4;/WX>"
- "$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedantic;-Werror>"
- "$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic;-Werror>"
+ "$<$<CXX_COMPILER_ID:MSVC>:/W4>"
+ "$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedantic>"
+ "$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic>"
)
endif()
|