diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-25 23:07:07 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-25 23:07:07 +0900 |
commit | 961bca954677cf68a3beae29bb9e16e2a5dddf3d (patch) | |
tree | 48419797236734271a41396bfbb9acaf687b32b8 /CMakeLists.txt | |
parent | 878c1e710de54bf913e085f5d5f6a198810c968f (diff) | |
download | libquotient-961bca954677cf68a3beae29bb9e16e2a5dddf3d.tar.gz libquotient-961bca954677cf68a3beae29bb9e16e2a5dddf3d.zip |
CMakeLists: Add -W to the mix
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6526fbfd..84f440f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ endif() set(CMAKE_CXX_STANDARD 14) -foreach (FLAG all pedantic extra error=return-type no-unused-parameter no-gnu-zero-variadic-macro-arguments) +foreach (FLAG all "" pedantic extra error=return-type no-unused-parameter no-gnu-zero-variadic-macro-arguments) CHECK_CXX_COMPILER_FLAG("-W${FLAG}" WARN_${FLAG}_SUPPORTED) if ( WARN_${FLAG}_SUPPORTED AND NOT CMAKE_CXX_FLAGS MATCHES "(^| )-W?${FLAG}($| )") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W${FLAG}") |