mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 22:34:21 +03:00
Add -Wpedantic to GCC/Clang in CMakeLists
This adds -Wpedantic so we get warned if our code doesn't strictly conform to ISO C++98. It doesn't seem like MSVC has it.
This commit is contained in:
1 parent
be9a6382ea
commit
0dceec8c20
1 file changed
+1
-1
@@ -207,7 +207,7 @@ IF(ENABLE_WARNINGS)
|
|||||||
# Saves quite a few lines and boilerplate at the price of readability.
|
# Saves quite a few lines and boilerplate at the price of readability.
|
||||||
TARGET_COMPILE_OPTIONS(VVVVVV PRIVATE
|
TARGET_COMPILE_OPTIONS(VVVVVV PRIVATE
|
||||||
$<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
$<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
||||||
-Wall $<$<BOOL:${ENABLE_WERROR}>:-Werror>>
|
-Wall -Wpedantic $<$<BOOL:${ENABLE_WERROR}>:-Werror>>
|
||||||
$<$<CXX_COMPILER_ID:MSVC>:
|
$<$<CXX_COMPILER_ID:MSVC>:
|
||||||
/W4 $<$<BOOL:${ENABLE_WERROR}>:/WX>>)
|
/W4 $<$<BOOL:${ENABLE_WERROR}>:/WX>>)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|||||||
Reference in new issue
Block a user