Tutorial: Update IPO example in Step 6

This commit is contained in:
Vito Gamberini
2025-10-15 13:54:50 -04:00
committed by Brad King
parent 773cee16d4
commit 058511c6b6
7 changed files with 15 additions and 7 deletions

View File

@@ -13,9 +13,10 @@ if(TUTORIAL_ENABLE_IPO)
include(CheckIPOSupported)
check_ipo_supported(RESULT result OUTPUT output)
if(result)
message("IPO is supported, enabling IPO")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
else()
message(WARNING "IPO is not supported ${message}")
message(WARNING "IPO is not supported: ${output}")
endif()
endif()