aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/m2m/CMakeLists.txt
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 /plugins/m2m/CMakeLists.txt
parentf6dfb9f323f6253c8c0470b8824d8846f5c578ab (diff)
cmake will now honor -Werror if configured (default: on)
svn path=/trunk/; revision=30852
Diffstat (limited to 'plugins/m2m/CMakeLists.txt')
-rw-r--r--plugins/m2m/CMakeLists.txt20
1 files changed, 16 insertions, 4 deletions
diff --git a/plugins/m2m/CMakeLists.txt b/plugins/m2m/CMakeLists.txt
index 2399a7ccf2..7739a79075 100644
--- a/plugins/m2m/CMakeLists.txt
+++ b/plugins/m2m/CMakeLists.txt
@@ -26,7 +26,7 @@ set(DISSECTOR_SRC
)
set(DISSECTOR_SUPPORT_SRC
- wimax_tlv.c
+ wimax_tlv.c
)
set(PLUGIN_FILES
@@ -35,6 +35,18 @@ set(PLUGIN_FILES
${DISSECTOR_SUPPORT_SRC}
)
+set(CLEAN_FILES
+ ${PLUGIN_FILES}
+)
+
+if (WERROR)
+ set_source_files_properties(
+ ${CLEAN_FILES}
+ PROPERTIES
+ COMPILE_FLAGS -Werror
+ )
+endif()
+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
register_dissector_files(plugin.c
@@ -53,8 +65,8 @@ add_library(m2m MODULE
target_link_libraries(m2m epan)
install(TARGETS m2m
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
)