mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-19 05:45:05 +01:00
cmake: Build secp256k1
only when required
This commit is contained in:
parent
76a3a540a4
commit
ab5c63edcc
@ -73,6 +73,9 @@ if(DEFINED ENV{CFLAGS})
|
|||||||
endif()
|
endif()
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
|
||||||
add_subdirectory(secp256k1)
|
add_subdirectory(secp256k1)
|
||||||
|
set_target_properties(secp256k1 PROPERTIES
|
||||||
|
EXCLUDE_FROM_ALL TRUE
|
||||||
|
)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
string(APPEND CMAKE_C_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CFLAGS}")
|
string(APPEND CMAKE_C_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CFLAGS}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user