Skip to content

Commit c2764db

Browse files
committed
cmake: Rename SECP256K1_LATE_CFLAGS to SECP256K1_APPEND_CFLAGS
This change follows the naming convention currently used in the Bitcoin Core's CMake staging branch.
1 parent 35c0fdc commit c2764db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,14 @@ if(SECP256K1_BUILD_BENCHMARK OR SECP256K1_BUILD_TESTS OR SECP256K1_BUILD_EXHAUST
284284
enable_testing()
285285
endif()
286286

287-
set(SECP256K1_LATE_CFLAGS "" CACHE STRING "Compiler flags that are added to the command line after all other flags added by the build system.")
287+
set(SECP256K1_APPEND_CFLAGS "" CACHE STRING "Compiler flags that are added to the command line after all other flags added by the build system.")
288288
include(AllTargetsCompileOptions)
289289

290290
add_subdirectory(src)
291-
all_targets_compile_options(src "${SECP256K1_LATE_CFLAGS}")
291+
all_targets_compile_options(src "${SECP256K1_APPEND_CFLAGS}")
292292
if(SECP256K1_BUILD_EXAMPLES)
293293
add_subdirectory(examples)
294-
all_targets_compile_options(examples "${SECP256K1_LATE_CFLAGS}")
294+
all_targets_compile_options(examples "${SECP256K1_APPEND_CFLAGS}")
295295
endif()
296296

297297
message("\n")
@@ -365,8 +365,8 @@ else()
365365
message(" - LDFLAGS for executables ............ ${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
366366
message(" - LDFLAGS for shared libraries ....... ${CMAKE_SHARED_LINKER_FLAGS_DEBUG}")
367367
endif()
368-
if(SECP256K1_LATE_CFLAGS)
369-
message("SECP256K1_LATE_CFLAGS ................. ${SECP256K1_LATE_CFLAGS}")
368+
if(SECP256K1_APPEND_CFLAGS)
369+
message("SECP256K1_APPEND_CFLAGS ............... ${SECP256K1_APPEND_CFLAGS}")
370370
endif()
371371
message("")
372372
if(print_msan_notice)

0 commit comments

Comments
 (0)