File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -586,11 +586,8 @@ target_compile_definitions(core_interface INTERFACE ${DEPENDS_COMPILE_DEFINITION
586586target_compile_definitions (core_interface_relwithdebinfo INTERFACE ${DEPENDS_COMPILE_DEFINITIONS_RELWITHDEBINFO} )
587587target_compile_definitions (core_interface_debug INTERFACE ${DEPENDS_COMPILE_DEFINITIONS_DEBUG} )
588588
589- # If {C,CXX,LD}FLAGS variables are defined during building depends and
590- # configuring this build system, their content might be duplicated.
591- if (DEFINED ENV{CFLAGS})
592- deduplicate_flags(CMAKE_C_FLAGS)
593- endif ()
589+ # If the {CXX,LD}FLAGS environment variables are defined during building depends
590+ # and configuring this build system, their content might be duplicated.
594591if (DEFINED ENV{CXXFLAGS})
595592 deduplicate_flags(CMAKE_CXX_FLAGS )
596593endif ()
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ foreach(config IN LISTS CMAKE_BUILD_TYPE CMAKE_CONFIGURATION_TYPES)
6666 string (TOUPPER "${config} " config)
6767 set (CMAKE_C_FLAGS_${config} "${CMAKE_C_FLAGS_RELWITHDEBINFO} " )
6868endforeach ()
69+ # If the CFLAGS environment variable is defined during building depends
70+ # and configuring this build system, its content might be duplicated.
71+ if (DEFINED ENV{CFLAGS})
72+ deduplicate_flags(CMAKE_C_FLAGS)
73+ endif ()
6974set (CMAKE_EXPORT_COMPILE_COMMANDS OFF )
7075add_subdirectory (secp256k1)
7176set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
You can’t perform that action at this time.
0 commit comments