aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wspython
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2009-11-07 10:07:00 +0000
committerJörg Mayer <jmayer@loplof.de>2009-11-07 10:07:00 +0000
commit9ee31d1d0e9a10ddb326bc7b23c22dc99bac7f6c (patch)
tree7e19b692aaacf4e9017a30429e79626a73f71a10 /epan/wspython
parentf6dfb9f323f6253c8c0470b8824d8846f5c578ab (diff)
cmake will now honor -Werror if configured (default: on)
svn path=/trunk/; revision=30852
Diffstat (limited to 'epan/wspython')
-rw-r--r--epan/wspython/CMakeLists.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/epan/wspython/CMakeLists.txt b/epan/wspython/CMakeLists.txt
index 0758e53be3..9f02504164 100644
--- a/epan/wspython/CMakeLists.txt
+++ b/epan/wspython/CMakeLists.txt
@@ -31,6 +31,18 @@ set(WSPYTHON_FILES
wspy_proto.c
)
+set(CLEAN_FILES
+ ${WSPYTHON_FILES}
+)
+
+if (WERROR)
+ set_source_files_properties(
+ ${CLEAN_FILES}
+ PROPERTIES
+ COMPILE_FLAGS -Werror
+ )
+endif()
+
set(wspython_LIBS
${PYTHON_LIBRARIES}
)
@@ -54,6 +66,6 @@ install(DIRECTORY
wspy_dissectors
DESTINATION
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}
- PATTERN ".svn" EXCLUDE
+ PATTERN ".svn" EXCLUDE
)