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/wslua/CMakeLists.txt | |
parent | f6dfb9f323f6253c8c0470b8824d8846f5c578ab (diff) |
cmake will now honor -Werror if configured (default: on)
svn path=/trunk/; revision=30852
Diffstat (limited to 'epan/wslua/CMakeLists.txt')
-rw-r--r-- | epan/wslua/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/wslua/CMakeLists.txt b/epan/wslua/CMakeLists.txt index c034707952..b9c1a42029 100644 --- a/epan/wslua/CMakeLists.txt +++ b/epan/wslua/CMakeLists.txt @@ -46,6 +46,18 @@ set(WSLUA_FILES init_wslua.c ) +set(CLEAN_FILES + ${WSLUA_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + # Used with untypical CWD set(WSLUA_TAPS_USED ${CMAKE_SOURCE_DIR}/epan/dissectors/packet-http.h |