Add LTO support #616

Merged
gaisser merged 15 commits from mueller/add-lto-support into development 2022-05-12 16:56:55 +02:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit a943e4eebb - Show all commits

View File

@ -69,6 +69,10 @@ set(FSFW_DUMMY_TGT fsfw-dummy)
project(${LIB_FSFW_NAME})
add_library(${LIB_FSFW_NAME})
if(IPO_SUPPORTED AND FSFW_ENABLE_IPO)
set_property(TARGET ${LIB_FSFW_NAME} PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
if(FSFW_BUILD_UNITTESTS)
message(STATUS "Building the FSFW unittests in addition to the static library")
# Check whether the user has already installed Catch2 first