aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-04-06 16:27:36 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-04-11 14:06:55 +0200
commit11a64f8b09f9c50b4d7ee0a757ff8bb025b00ba0 (patch)
tree99d8291299aec4e4d4536d0acbdcb78e08489b76 /cmake
parent68bf28b3a15063bfddd3cf7fdd96b9d2def87b94 (diff)
downloadrspamd-11a64f8b09f9c50b4d7ee0a757ff8bb025b00ba0.tar.gz
rspamd-11a64f8b09f9c50b4d7ee0a757ff8bb025b00ba0.zip
[Minor] Print always IPO status
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Toolset.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/Toolset.cmake b/cmake/Toolset.cmake
index 638dca9e1..8539dbe0a 100644
--- a/cmake/Toolset.cmake
+++ b/cmake/Toolset.cmake
@@ -175,6 +175,7 @@ option(ENABLE_LTO "Build rspamd with Link Time Optimization if supported [
if (CMAKE_BUILD_TYPE_UC MATCHES "COVERAGE")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
+ message (STATUS "IPO not enabled for COVERAGE build")
elseif (ENABLE_LTO)
if (${CMAKE_VERSION} VERSION_GREATER "3.9.0")
cmake_policy (SET CMP0069 NEW)
@@ -187,6 +188,8 @@ elseif (ENABLE_LTO)
message(WARNING "IPO is not supported: ${LTO_DIAG}")
endif ()
endif ()
+else ()
+ message (STATUS "IPO not enabled for the ${CMAKE_BUILD_TYPE} build")
endif ()
message (STATUS "Final CFLAGS: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UC}}")