diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b7f906..6238902 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ################################################################################