aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2009-11-07 10:07:00 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2009-11-07 10:07:00 +0000
commit8c8c3600ee0587cf167045456b322d6153306813 (patch)
tree7e19b692aaacf4e9017a30429e79626a73f71a10 /tools
parentfa4231b8156c3efe875b2d2822b1a14a76c753e9 (diff)
cmake will now honor -Werror if configured (default: on)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30852 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rw-r--r--tools/lemon/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/lemon/CMakeLists.txt b/tools/lemon/CMakeLists.txt
index 2b396bcd37..1279110931 100644
--- a/tools/lemon/CMakeLists.txt
+++ b/tools/lemon/CMakeLists.txt
@@ -25,6 +25,18 @@ set(lemon_FILES
lemon.c
)
+set(CLEAN_FILES
+ ${lemon_FILES}
+)
+
+if (WERROR)
+ set_source_files_properties(
+ ${CLEAN_FILES}
+ PROPERTIES
+ COMPILE_FLAGS -Werror
+ )
+endif()
+
set(lemon_LIBS
# Do we need something here on any platform?
)