File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ if(SECP256K1_ENABLE_MODULE_ELLSWIFT)
68
68
endif ()
69
69
70
70
if (SECP256K1_ENABLE_MODULE_SCHNORRSIG)
71
+ if (DEFINED SECP256K1_ENABLE_MODULE_EXTRAKEYS AND NOT SECP256K1_ENABLE_MODULE_EXTRAKEYS)
72
+ message (FATAL_ERROR "Module dependency error: You have disabled the extrakeys module explicitly, but it is required by the schnorrsig module." )
73
+ endif ()
71
74
set (SECP256K1_ENABLE_MODULE_EXTRAKEYS ON )
72
75
add_compile_definitions (ENABLE_MODULE_SCHNORRSIG=1)
73
76
endif ()
Original file line number Diff line number Diff line change @@ -394,6 +394,9 @@ if test x"$enable_module_ellswift" = x"yes"; then
394
394
fi
395
395
396
396
if test x"$enable_module_schnorrsig" = x"yes"; then
397
+ if test x"$enable_module_extrakeys" = x"no"; then
398
+ AC_MSG_ERROR ( [ Module dependency error: You have disabled the extrakeys module explicitly, but it is required by the schnorrsig module.] )
399
+ fi
397
400
enable_module_extrakeys=yes
398
401
SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DENABLE_MODULE_SCHNORRSIG=1"
399
402
fi
You can’t perform that action at this time.
0 commit comments