@@ -198,11 +198,11 @@ add_library(core_interface INTERFACE)
198
198
# include the warn_interface as subtree's warnings are not fixable
199
199
# in our tree.
200
200
add_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 )
203
203
target_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 >
206
206
)
207
207
target_link_libraries (core_interface INTERFACE core_base_interface)
208
208
@@ -419,7 +419,7 @@ include(ProcessConfigurations)
419
419
set_default_config(RelWithDebInfo)
420
420
421
421
# Redefine/adjust per-configuration flags.
422
- target_compile_definitions (core_depends_debug_interface INTERFACE
422
+ target_compile_definitions (core_interface_debug INTERFACE
423
423
DEBUG
424
424
DEBUG_LOCKORDER
425
425
DEBUG_LOCKCONTENTION
@@ -564,8 +564,8 @@ else()
564
564
endif ()
565
565
566
566
target_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} )
569
569
570
570
# If {C,CXX,LD}FLAGS variables are defined during building depends and
571
571
# configuring this build system, their content might be duplicated.
@@ -591,12 +591,6 @@ add_maintenance_targets()
591
591
add_windows_deploy_target()
592
592
add_macos_deploy_target()
593
593
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
-
600
594
message ("\n " )
601
595
message ("Configure summary" )
602
596
message ("=================" )
@@ -642,18 +636,10 @@ else()
642
636
set (cross_status "FALSE" )
643
637
endif ()
644
638
message ("Cross compiling ....................... ${cross_status} " )
645
- message ("Preprocessor defined macros ........... ${definitions} " )
646
639
message ("C compiler ............................ ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} , ${CMAKE_C_COMPILER} " )
647
- message ("CFLAGS ................................ ${CMAKE_C_FLAGS} ${APPEND_CPPFLAGS} ${APPEND_CFLAGS} " )
648
640
message ("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()
657
643
message ("Attempt to harden executables ......... ${ENABLE_HARDENING} " )
658
644
message ("Treat compiler warnings as errors ..... ${WERROR} " )
659
645
message ("Use ccache for compiling .............. ${WITH_CCACHE} " )
0 commit comments