Commit 7ce96022 authored by Ghislain MARY's avatar Ghislain MARY

Prevent unknown option warnings when building with Clang.

parent 11c9929f
......@@ -44,13 +44,15 @@ if(NOT WIN32)
-Wfloat-equal \
-Winit-self \
-Winline \
-Wlogical-op \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpointer-arith \
-Wuninitialized \
-Wunused \
")
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wlogical-op")
endif()
if(SUGGEST_OVERRIDE)
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override")
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment