aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-03 19:51:39 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-03 19:51:44 +0200
commit6893223f3c51356a41d093b41512c5c3d67089bf (patch)
treebb4baf9da5aab529814449639510167003b148db
parentdocs/cmake: update references (diff)
downloadcmake-common-6893223f3c51356a41d093b41512c5c3d67089bf.tar.gz
cmake-common-6893223f3c51356a41d093b41512c5c3d67089bf.zip
common.cmake: enable warnings for Clang as well
I seriously can't believe I didn't have warnings enabled for Clang. That is so, so dumb.
Diffstat (limited to '')
-rw-r--r--common.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.cmake b/common.cmake
index f718dbf..2e4b674 100644
--- a/common.cmake
+++ b/common.cmake
@@ -114,7 +114,7 @@ function(_cc_best_practices target)
message(STATUS "common.cmake: ${target}: Settings common compiler options")
if(is_msvc)
_cc_best_practices_msvc("${target}")
- elseif(is_gcc)
+ elseif(is_gcc OR is_clang)
_cc_best_practices_gcc("${target}")
endif()
endif()