diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-15 12:58:33 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-15 12:58:33 -0800 |
commit | e7b32b003ec7a715ed33aff402a0fe4395eb20ee (patch) | |
tree | ffeba459645c0a86ae2b23d59918c8f84a1833f4 /tests | |
parent | 6837f9ce926d149bc73c98d9ea5cfab671e0700a (diff) |
Build rpcapd and the tests with the warning flags.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7088e857..bb0c4639 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -8,6 +8,8 @@ add_custom_target(tests) macro(add_test_executable _executable) add_executable(${_executable} EXCLUDE_FROM_ALL ${_executable}.c ${PROJECT_SOURCE_LIST_WIN32_C}) + set_target_properties(${_executable} PROPERTIES + COMPILE_OPTIONS "${C_ADDITIONAL_FLAGS}") target_link_libraries(${_executable} ${ARGN} ${LIBRARY_NAME}_static ${PCAP_LINK_LIBRARIES}) add_dependencies(tests ${_executable}) |