Commit 9b72b22e authored by Ghislain MARY's avatar Ghislain MARY

Prevent CMake error when disabling strict compilation.

parent 7e2be4c9
......@@ -176,7 +176,9 @@ if(NOT MSVC)
list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement")
endif()
list(REMOVE_DUPLICATES STRICT_OPTIONS_CPP)
list(REMOVE_DUPLICATES STRICT_OPTIONS_C)
if(STRICT_OPTIONS_C)
list(REMOVE_DUPLICATES STRICT_OPTIONS_C)
endif()
endif()
set(LINK_FLAGS )
if(APPLE)
......
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