summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-03-27 14:11:25 -0700
committerGuy Harris <guy@alum.mit.edu>2018-03-27 14:11:25 -0700
commitaf51efcd6a4e91a2da20074dbf1e529c6b024d17 (patch)
treecafe8c32df68ff4a867e2724c8e7afa8e1080825 /CMakeLists.txt
parent092ae6ddf7ca803f5ef0eed69b26ef5797833988 (diff)
downloadtcpdump-af51efcd6a4e91a2da20074dbf1e529c6b024d17.tar.gz
The COMPILE_FLAGS property is a string, not a list.
Make C_ADDITIONAL_FLAGS a string as well, and use it appropriately.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 557541df..d291e1c7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,7 +44,7 @@ macro(check_and_add_compiler_option _option)
string(REGEX REPLACE "^-" "" _option_variable ${_temp_option_variable})
check_c_compiler_flag("${_option}" ${_option_variable})
if(${${_option_variable}})
- set(C_ADDITIONAL_FLAGS ${C_ADDITIONAL_FLAGS} "${_option}")
+ set(C_ADDITIONAL_FLAGS "${C_ADDITIONAL_FLAGS} ${_option}")
endif()
endmacro()
@@ -1000,7 +1000,7 @@ endif(NOT WIN32)
add_library(netdissect STATIC
${NETDISSECT_SOURCE_LIST_C}
)
-set_target_properties(netdissect PROPERTIES COMPILE_FLAGS "${C_ADDITIONAL_FLAGS}")
+set_target_properties(netdissect PROPERTIES COMPILE_FLAGS ${C_ADDITIONAL_FLAGS})
set(TCPDUMP_SOURCE_LIST_C tcpdump.c)
@@ -1033,7 +1033,7 @@ source_group("Header Files" FILES ${PROJECT_SOURCE_LIST_H})
######################################
add_executable(tcpdump ${TCPDUMP_SOURCE_LIST_C})
-set_target_properties(tcpdump PROPERTIES COMPILE_FLAGS "${C_ADDITIONAL_FLAGS}")
+set_target_properties(tcpdump PROPERTIES COMPILE_FLAGS ${C_ADDITIONAL_FLAGS})
target_link_libraries(tcpdump netdissect ${TCPDUMP_LINK_LIBRARIES})
######################################