diff options
-rw-r--r-- | wsutil/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt index a467f5f67b..0a8ed63acc 100644 --- a/wsutil/CMakeLists.txt +++ b/wsutil/CMakeLists.txt @@ -166,6 +166,16 @@ if (WERROR) PROPERTIES COMPILE_FLAGS -Werror ) +else() + # + # Set the property to an empty string, so that if we try + # to get it below, it succeeds. + # + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS "" + ) endif() if (HAVE_SSE4_2) get_source_file_property( |