diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2024-04-05 15:17:08 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2024-04-05 15:17:08 +0100 |
commit | a0ffbfba6cf7e9e5c76ed84e2f0b3c659503a2f7 (patch) | |
tree | 193f1b316adbc733ca4a3a5c5042617d0865ac64 | |
parent | af7e049e771e197c259a86804a620a5ee18d1700 (diff) | |
download | tcpdump-a0ffbfba6cf7e9e5c76ed84e2f0b3c659503a2f7.tar.gz |
CMake: Get the comment about EXTRA_CFLAGS right. [skip ci]
The "testprogs" sentence applies to libpcap only.
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ad511ca6..b727990e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1044,8 +1044,7 @@ if(NOT "${EXTRA_CFLAGS}" STREQUAL "") # The meaning of EXTRA_CFLAGS is "use the exact specified options, or the # build risks failing to fail", not "try every specified option, omit those # that do not work and use the rest". Thus use add_compile_options(), not - # foreach()/check_and_add_compiler_option(). Another reason to do that is - # that the effect lasts in testprogs/ and testprogs/fuzz/. + # foreach()/check_and_add_compiler_option(). string(REPLACE " " ";" _extra_cflags_list ${EXTRA_CFLAGS}) add_compile_options(${_extra_cflags_list}) message(STATUS "Added extra compile options (${EXTRA_CFLAGS})") |