Always set the COMPILE_FLAGS property, so we can always fetch it.
authorGuy Harris <guy@alum.mit.edu>
Wed, 21 Jan 2015 04:39:09 +0000 (20:39 -0800)
committerGuy Harris <guy@alum.mit.edu>
Wed, 21 Jan 2015 04:39:33 +0000 (04:39 +0000)
If we aren't adding -Werror, just set it to a null string, so when we
fetch it to add the SSE 4.2 flag to it for ws_mempbrk_sse42.c, it
doesn't fail.

Change-Id: I53858130c025e094ed8d0d975451961506fb1a39
Reviewed-on: https://code.wireshark.org/review/6704
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wsutil/CMakeLists.txt

index a467f5f67bcc643b0c7872ede5550ac7ea4d9604..0a8ed63accced93d210590cc6bdd03f9a35867e7 100644 (file)
@@ -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(