Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,20 @@ endif()
################################################################
# Vampire
################################################################
# link-time optimisation for release builds, if the toolchain supports it
if(CMAKE_BUILD_TYPE STREQUAL "Release")
include(CheckIPOSupported)
check_ipo_supported(RESULT IPO_SUPPORTED OUTPUT IPO_OUTPUT LANGUAGES CXX)
if(IPO_SUPPORTED)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
else()
message(STATUS "link-time optimisation not supported, building without it")
if(VERBOSE_IPO_FAILURE)
message(STATUS "${IPO_OUTPUT}")
endif()
endif()
endif()

# wrap up common object files so not built multiple times for each target
add_library(common OBJECT ${SOURCES})

Expand Down