diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-11-07 10:07:00 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-11-07 10:07:00 +0000 |
commit | 8c8c3600ee0587cf167045456b322d6153306813 (patch) | |
tree | 7e19b692aaacf4e9017a30429e79626a73f71a10 /plugins/tpg/CMakeLists.txt | |
parent | fa4231b8156c3efe875b2d2822b1a14a76c753e9 (diff) |
cmake will now honor -Werror if configured (default: on)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30852 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/tpg/CMakeLists.txt')
-rw-r--r-- | plugins/tpg/CMakeLists.txt | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/plugins/tpg/CMakeLists.txt b/plugins/tpg/CMakeLists.txt index 542a83bdc7..94728784c7 100644 --- a/plugins/tpg/CMakeLists.txt +++ b/plugins/tpg/CMakeLists.txt @@ -26,6 +26,18 @@ set(PLUGIN_FILES packet-http.c ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_BINARY_DIR}) set(_tpg ${CMAKE_SOURCE_DIR}/tools/tpg) @@ -69,8 +81,8 @@ add_library(tpg MODULE target_link_libraries(tpg epan) install(TARGETS tpg - 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} ) |