Skip to content

Commit b093a19

Browse files
committed
cmake: Proactively avoid use of SECP256K1_DISABLE_SHARED
The `SECP256K1_DISABLE_SHARED` CMake variable has been removed upstream. This change removes its usage ahead of the next `secp256k1` subtree update to prevent breakage and simplify integration.
1 parent eb59a19 commit b093a19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/secp256k1.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
function(add_secp256k1 subdir)
66
message("")
77
message("Configuring secp256k1 subtree...")
8-
set(SECP256K1_DISABLE_SHARED ON CACHE BOOL "" FORCE)
8+
set(BUILD_SHARED_LIBS OFF)
9+
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
910
set(SECP256K1_ENABLE_MODULE_ECDH OFF CACHE BOOL "" FORCE)
1011
set(SECP256K1_ENABLE_MODULE_RECOVERY ON CACHE BOOL "" FORCE)
1112
set(SECP256K1_ENABLE_MODULE_MUSIG ON CACHE BOOL "" FORCE)
@@ -42,7 +43,7 @@ function(add_secp256k1 subdir)
4243
if(DEFINED ENV{CFLAGS})
4344
deduplicate_flags(CMAKE_C_FLAGS)
4445
endif()
45-
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
46+
4647
add_subdirectory(${subdir})
4748
set_target_properties(secp256k1 PROPERTIES
4849
EXCLUDE_FROM_ALL TRUE

0 commit comments

Comments
 (0)