Skip to content
Permalink
Browse files
CMakeLists.txt: activate warning flags for Clang as well
  • Loading branch information
rouault committed Jan 17, 2020
1 parent b6fec8b commit fdad948e08a7a5c6bd3aa0e421aa9c2ec2277897
Showing 1 changed file with 1 addition and 1 deletion.
@@ -185,7 +185,7 @@ option(WITH_GENERIC_NINT "generic rounding" OFF)
# PERLV_ld_DETECT?

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

0 comments on commit fdad948

Please sign in to comment.