diff options
author | Jörg Mayer <jmayer@loplof.de> | 2009-11-07 10:07:00 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2009-11-07 10:07:00 +0000 |
commit | 9ee31d1d0e9a10ddb326bc7b23c22dc99bac7f6c (patch) | |
tree | 7e19b692aaacf4e9017a30429e79626a73f71a10 /epan/wspython | |
parent | f6dfb9f323f6253c8c0470b8824d8846f5c578ab (diff) | |
download | wireshark-9ee31d1d0e9a10ddb326bc7b23c22dc99bac7f6c.tar.gz wireshark-9ee31d1d0e9a10ddb326bc7b23c22dc99bac7f6c.tar.bz2 wireshark-9ee31d1d0e9a10ddb326bc7b23c22dc99bac7f6c.zip |
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.txt | 14 |
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 ) |