Skip to content

Commit

Permalink
cmake: Remove C stuff from summary
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed May 26, 2024
1 parent a55a410 commit 9f4bf00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
13 changes: 0 additions & 13 deletions cmake/module/FlagsSummary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@ function(print_flags_per_config config indent dots)
get_target_interface(definitions ${config} core_interface COMPILE_DEFINITIONS)
message("${indent}" "Preprocessor defined macros .........${dots} ${definitions}")

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)
message("${indent}" "C flags .............................${dots} ${combined_c_flags}")

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})
Expand Down

0 comments on commit 9f4bf00

Please sign in to comment.