From e6d1796b8ed7ff0875e5545c183a56fad247e8ce Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 25 May 2024 10:15:03 +0100 Subject: [PATCH] cmake: Remove C stuff from summary --- CMakeLists.txt | 1 - cmake/module/FlagsSummary.cmake | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04f6b760b25dd..9ea8b158b463d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -615,7 +615,6 @@ else() set(cross_status "FALSE") endif() message("Cross compiling ....................... ${cross_status}") -message("C compiler ............................ ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}, ${CMAKE_C_COMPILER}") message("C++ compiler .......................... ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}, ${CMAKE_CXX_COMPILER}") include(FlagsSummary) flags_summary() diff --git a/cmake/module/FlagsSummary.cmake b/cmake/module/FlagsSummary.cmake index bd65b4ed4e7fd..9f998dee19c6a 100644 --- a/cmake/module/FlagsSummary.cmake +++ b/cmake/module/FlagsSummary.cmake @@ -20,19 +20,6 @@ function(print_flags_per_config config indent_num) get_target_interface(definitions ${config} core_interface COMPILE_DEFINITIONS) indent_message("Preprocessor defined macros ..........." "${definitions}" ${indent_num}) - string(STRIP "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${config_uppercase}}" combined_c_flags) - if(CMAKE_INTERPROCEDURAL_OPTIMIZATION) - string(JOIN " " combined_c_flags ${combined_c_flags} ${CMAKE_C_COMPILE_OPTIONS_IPO}) - endif() - if(CMAKE_POSITION_INDEPENDENT_CODE) - string(JOIN " " combined_c_flags ${combined_c_flags} ${CMAKE_C_COMPILE_OPTIONS_PIC}) - endif() - get_target_interface(core_c_flags ${config} core_base_interface COMPILE_OPTIONS) - string(STRIP "${combined_c_flags} ${core_c_flags}" combined_c_flags) - string(STRIP "${combined_c_flags} ${APPEND_CPPFLAGS}" combined_c_flags) - string(STRIP "${combined_c_flags} ${APPEND_CFLAGS}" combined_c_flags) - indent_message("C flags ..............................." "${combined_c_flags}" ${indent_num}) - string(STRIP "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${config_uppercase}}" combined_cxx_flags) if(CMAKE_INTERPROCEDURAL_OPTIMIZATION) string(JOIN " " combined_cxx_flags ${combined_cxx_flags} ${CMAKE_CXX_COMPILE_OPTIONS_IPO})