@@ -198,11 +198,11 @@ add_library(core_interface INTERFACE)
198198# include the warn_interface as subtree's warnings are not fixable
199199# in our tree.
200200add_library (core_base_interface INTERFACE )
201- add_library (core_depends_release_interface INTERFACE )
202- add_library (core_depends_debug_interface INTERFACE )
201+ add_library (core_interface_relwithdebinfo INTERFACE )
202+ add_library (core_interface_debug INTERFACE )
203203target_link_libraries (core_base_interface INTERFACE
204- $<$<CONFIG:RelWithDebInfo>:core_depends_release_interface >
205- $<$<CONFIG:Debug>:core_depends_debug_interface >
204+ $<$<CONFIG:RelWithDebInfo>:core_interface_relwithdebinfo >
205+ $<$<CONFIG:Debug>:core_interface_debug >
206206)
207207target_link_libraries (core_interface INTERFACE core_base_interface)
208208
@@ -419,7 +419,7 @@ include(ProcessConfigurations)
419419set_default_config(RelWithDebInfo)
420420
421421# Redefine/adjust per-configuration flags.
422- target_compile_definitions (core_depends_debug_interface INTERFACE
422+ target_compile_definitions (core_interface_debug INTERFACE
423423 DEBUG
424424 DEBUG_LOCKORDER
425425 DEBUG_LOCKCONTENTION
@@ -564,8 +564,8 @@ else()
564564endif ()
565565
566566target_compile_definitions (core_base_interface INTERFACE ${DEPENDS_COMPILE_DEFINITIONS} )
567- target_compile_definitions (core_depends_release_interface INTERFACE ${DEPENDS_COMPILE_DEFINITIONS_RELWITHDEBINFO} )
568- target_compile_definitions (core_depends_debug_interface INTERFACE ${DEPENDS_COMPILE_DEFINITIONS_DEBUG} )
567+ target_compile_definitions (core_interface_relwithdebinfo INTERFACE ${DEPENDS_COMPILE_DEFINITIONS_RELWITHDEBINFO} )
568+ target_compile_definitions (core_interface_debug INTERFACE ${DEPENDS_COMPILE_DEFINITIONS_DEBUG} )
569569
570570# If {C,CXX,LD}FLAGS variables are defined during building depends and
571571# configuring this build system, their content might be duplicated.
@@ -591,12 +591,6 @@ add_maintenance_targets()
591591add_windows_deploy_target()
592592add_macos_deploy_target()
593593
594-
595- include (GetTargetInterface)
596- get_target_interface(definitions core_interface COMPILE_DEFINITIONS )
597- get_target_interface(definitions_RELWITHDEBINFO core_depends_release_interface COMPILE_DEFINITIONS )
598- get_target_interface(definitions_DEBUG core_depends_debug_interface COMPILE_DEFINITIONS )
599-
600594message ("\n " )
601595message ("Configure summary" )
602596message ("=================" )
@@ -642,18 +636,10 @@ else()
642636 set (cross_status "FALSE" )
643637endif ()
644638message ("Cross compiling ....................... ${cross_status} " )
645- message ("Preprocessor defined macros ........... ${definitions} " )
646639message ("C compiler ............................ ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} , ${CMAKE_C_COMPILER} " )
647- message ("CFLAGS ................................ ${CMAKE_C_FLAGS} ${APPEND_CPPFLAGS} ${APPEND_CFLAGS} " )
648640message ("C++ compiler .......................... ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} , ${CMAKE_CXX_COMPILER} " )
649- message ("CXXFLAGS .............................. ${CMAKE_CXX_FLAGS} ${APPEND_CPPFLAGS} ${APPEND_CXXFLAGS} " )
650- get_target_interface(common_compile_options core_interface COMPILE_OPTIONS)
651- message ("Common compile options ................ ${common_compile_options} " )
652- get_target_interface(common_link_options core_interface LINK_OPTIONS)
653- message ("Common link options ................... ${common_link_options} " )
654- message ("Linker flags for executables .......... ${CMAKE_EXE_LINKER_FLAGS} ${APPEND_LDFLAGS} " )
655- message ("Linker flags for shared libraries ..... ${CMAKE_SHARED_LINKER_FLAGS} ${APPEND_LDFLAGS} " )
656- print_config_flags()
641+ include (FlagsSummary)
642+ flags_summary()
657643message ("Attempt to harden executables ......... ${ENABLE_HARDENING} " )
658644message ("Treat compiler warnings as errors ..... ${WERROR} " )
659645message ("Use ccache for compiling .............. ${WITH_CCACHE} " )
0 commit comments