aboutsummaryrefslogtreecommitdiff
path: root/cmake/utils.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/utils.cmake')
-rw-r--r--cmake/utils.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/utils.cmake b/cmake/utils.cmake
index 291be3c..19e81f2 100644
--- a/cmake/utils.cmake
+++ b/cmake/utils.cmake
@@ -37,6 +37,9 @@ function(effcee_default_c_compile_options TARGET)
if (UNIX AND NOT MINGW)
target_link_libraries(${TARGET} PUBLIC -pthread)
endif()
+ if (${CMAKE_C_COMPILER_ID} MATCHES "Clang")
+ target_compile_options(${TARGET} PRIVATE -Wextra-semi)
+ endif()
else()
# disable warning C4800: 'int' : forcing value to bool 'true' or 'false'
# (performance warning)