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 /plugins/wimaxasncp | |
parent | f6dfb9f323f6253c8c0470b8824d8846f5c578ab (diff) |
cmake will now honor -Werror if configured (default: on)
svn path=/trunk/; revision=30852
Diffstat (limited to 'plugins/wimaxasncp')
-rw-r--r-- | plugins/wimaxasncp/CMakeLists.txt | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/plugins/wimaxasncp/CMakeLists.txt b/plugins/wimaxasncp/CMakeLists.txt index d24831c053..b04db01549 100644 --- a/plugins/wimaxasncp/CMakeLists.txt +++ b/plugins/wimaxasncp/CMakeLists.txt @@ -30,6 +30,18 @@ set(PLUGIN_FILES ${DISSECTOR_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + add_lex_files(PLUGIN_FILES wimaxasncp_dict.l ) @@ -52,8 +64,8 @@ add_library(wimaxasncp MODULE target_link_libraries(wimaxasncp epan) install(TARGETS wimaxasncp - 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} ) |