add lto option
fsfw/fsfw example hosted/pipeline/head This commit looks good Details

This commit is contained in:
Robin Müller 2022-05-17 18:55:23 +02:00
parent 99a04398af
commit 21b3e46a72
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ endif()
# Project Name
project(fsfw-example-hosted C CXX)
option(OBSW_ENABLE_IPO "Enable IPO/LTO optimization" ON)
if(OBSW_ENABLE_IPO)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
################################################################################
# Pre-Sources preparation
################################################################################