endif()
message(STATUS "Ccache dev mode: ${CCACHE_DEV_MODE}")
+option(ENABLE_IPO "Enable interprocedural (link time, LTO) optimization" OFF)
+if(ENABLE_IPO)
+ set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
+endif()
+
include(UseCcache)
include(UseFastestLinker)
include(StandardSettings)
include(CIBuildType)
include(DefaultBuildType)
-option(ENABLE_IPO "Enable interprocedural (link time, LTO) optimization" OFF)
-if(ENABLE_IPO)
- set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
-endif()
-
#
# Configuration
#
return()
endif()
+if(ENABLE_IPO)
+ message(STATUS "Using standard linker for IPO")
+ return()
+endif()
+
if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)
# Be conservative and only probe for a faster linker on platforms that likely
# don't have toolchain bugs. See for example