Skip to content

Commit fdad948

Browse files
committed
CMakeLists.txt: activate warning flags for Clang as well
1 parent b6fec8b commit fdad948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ option(WITH_GENERIC_NINT "generic rounding" OFF)
185185
# PERLV_ld_DETECT?
186186

187187
# Add compiler flags for warnings
188-
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
188+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
189189
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror=format-security")
190190
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror=format-security")
191191
endif()

0 commit comments

Comments
 (0)