Skip to content

Commit 4fc697c

Browse files
Break up CXX_COMPILER_ID generator expressions
Support for multiple arguments was added fairly recently it appears; it is not present in 3.10.2.
1 parent 4505f9b commit 4fc697c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ include(CMakeSanitize)
1414
# Compile options ################################################
1515

1616
# Maximum warnings level & warnings as error
17-
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/W4;/WX>")
18-
add_compile_options("$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-Wall;-Wextra;-pedantic;-Werror>")
17+
add_compile_options(
18+
"$<$<CXX_COMPILER_ID:MSVC>:/W4;/WX>"
19+
"$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedantic;-Werror>"
20+
"$<$<CXX_COMPILER_ID:Clang>:-Wall;-Wextra;-pedantic;-Werror>"
21+
"$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic;-Werror>"
22+
)
1923

2024
# Build options ################################################
2125

0 commit comments

Comments
 (0)