This PR address this https://github.com/hebasto/bitcoin/issues/239#issuecomment-2182713690:
For consistency with libsecp256k1:
Is this code block supposed to achieve the same as our
SECP256K1_LATE_CFLAGS
(implemented by a user-defined functionall_targets_add_compile_options
) in libsecp256k1?It is. But this approach guaranties to override even options that are abstracted by CMake, for instance #157 (comment).
If we agree that appending to rule variables is superior, should we also do this in libsecp256k1?
And/or should we rename the
SECP256K1_LATE_CFLAGS
variable toAPPEND_CFLAGS
?