Skip to content

Commit

Permalink
cmake: Build secp256k1 only when required
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Nov 23, 2024
1 parent 76a3a54 commit ab5c63e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ if(DEFINED ENV{CFLAGS})
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
add_subdirectory(secp256k1)
set_target_properties(secp256k1 PROPERTIES
EXCLUDE_FROM_ALL TRUE
)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
string(APPEND CMAKE_C_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CFLAGS}")

Expand Down

0 comments on commit ab5c63e

Please sign in to comment.