File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,11 @@ include(GetTargetInterface)
52
52
# -fsanitize and related flags apply to both C++ and C,
53
53
# so we can pass them down to libsecp256k1 as CFLAGS and LDFLAGS.
54
54
get_target_interface (SECP256K1_APPEND_CFLAGS "" sanitize_interface COMPILE_OPTIONS )
55
+ string (STRIP "${SECP256K1_APPEND_CFLAGS} ${APPEND_CPPFLAGS} " SECP256K1_APPEND_CFLAGS )
56
+ string (STRIP "${SECP256K1_APPEND_CFLAGS} ${APPEND_CFLAGS} " SECP256K1_APPEND_CFLAGS )
55
57
set (SECP256K1_APPEND_CFLAGS ${SECP256K1_APPEND_CFLAGS} CACHE STRING "" FORCE )
56
58
get_target_interface (SECP256K1_APPEND_LDFLAGS "" sanitize_interface LINK_OPTIONS )
59
+ string (STRIP "${SECP256K1_APPEND_LDFLAGS} ${APPEND_LDFLAGS} " SECP256K1_APPEND_LDFLAGS )
57
60
set (SECP256K1_APPEND_LDFLAGS ${SECP256K1_APPEND_LDFLAGS} CACHE STRING "" FORCE )
58
61
# We want to build libsecp256k1 with the most tested RelWithDebInfo configuration.
59
62
enable_language (C )
@@ -75,7 +78,6 @@ set_target_properties(secp256k1 PROPERTIES
75
78
EXCLUDE_FROM_ALL TRUE
76
79
)
77
80
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
78
- string (APPEND CMAKE_C_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CFLAGS} " )
79
81
80
82
add_library (bitcoin_consensus STATIC EXCLUDE_FROM_ALL
81
83
arith_uint256.cpp
You can’t perform that action at this time.
0 commit comments