From f833e8e59d6e04ad3f6adca61caa28df0f5e1db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Mon, 22 Jul 2013 14:43:17 +0000 Subject: [PATCH] Looks like building with -Werror in wsutil was forgotten with cmake. svn path=/trunk/; revision=50788 --- wsutil/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt index 85fe2a96f5..cce06d373f 100644 --- a/wsutil/CMakeLists.txt +++ b/wsutil/CMakeLists.txt @@ -63,6 +63,18 @@ set(wsutil_LIBS ${GLIB2_LIBRARIES} ) +set(CLEAN_FILES + ${WSUTIL_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + add_library(wsutil ${LINK_MODE_LIB} ${WSUTIL_FILES} )