mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
CMake: Handle EXTRA_CFLAGS w/o add_compile_options(). [skip ci]
Same as in libpcap commit 29d7856.
This commit is contained in:
parent
d423316ce1
commit
cae0c65013
@ -924,8 +924,9 @@ endif()
|
||||
# usage: cmake -DEXTRA_CFLAGS='-Wall -Wextra -Werror' ...
|
||||
#
|
||||
if(NOT "${EXTRA_CFLAGS}" STREQUAL "")
|
||||
string(REPLACE " " ";" _extra_cflags_list ${EXTRA_CFLAGS})
|
||||
add_compile_options(${_extra_cflags_list})
|
||||
foreach(_extra_cflag ${EXTRA_CFLAGS})
|
||||
check_and_add_compiler_option(_extra_cflag)
|
||||
endforeach(_extra_cflag)
|
||||
message(STATUS "Added extra compile options (${EXTRA_CFLAGS})")
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user