aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-04-26 13:38:41 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-08-16 21:19:11 +0100
commit1f60b30df0cb58a7381a1bfbd6d34f002232e862 (patch)
tree2b0782f8b46976e79497a6d618f5092f7d61a1cf /src
parent2b43c45b13ad00cfd9928a03da8a480977724cb1 (diff)
downloadbitcoin-1f60b30df0cb58a7381a1bfbd6d34f002232e862.tar.xz
cmake: Add `APPEND_{CPP,C,CXX,LD}FLAGS` cache variables
The content of those variables is appended to the each target after the flags added by the build system.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2877cc51f7..18b2b5745d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -73,6 +73,7 @@ endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
add_subdirectory(secp256k1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+string(APPEND CMAKE_C_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CFLAGS}")
# Stable, backwards-compatible consensus functionality.
add_library(bitcoin_consensus STATIC EXCLUDE_FROM_ALL