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.
This commit is contained in:
Hennadii Stepanov
2024-04-26 13:38:41 +01:00
parent 2b43c45b13
commit 1f60b30df0
3 changed files with 30 additions and 0 deletions

View File

@@ -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