Skip to content

Commit ab5c63e

Browse files
committed
cmake: Build secp256k1 only when required
1 parent 76a3a54 commit ab5c63e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ if(DEFINED ENV{CFLAGS})
7373
endif()
7474
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
7575
add_subdirectory(secp256k1)
76+
set_target_properties(secp256k1 PROPERTIES
77+
EXCLUDE_FROM_ALL TRUE
78+
)
7679
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
7780
string(APPEND CMAKE_C_COMPILE_OBJECT " ${APPEND_CPPFLAGS} ${APPEND_CFLAGS}")
7881

0 commit comments

Comments
 (0)