diff --git a/Help/guide/tutorial/Complete/TutorialProject/CMakeLists.txt b/Help/guide/tutorial/Complete/TutorialProject/CMakeLists.txt index 9a4ecbde83..40916387ea 100644 --- a/Help/guide/tutorial/Complete/TutorialProject/CMakeLists.txt +++ b/Help/guide/tutorial/Complete/TutorialProject/CMakeLists.txt @@ -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() diff --git a/Help/guide/tutorial/Step10/TutorialProject/CMakeLists.txt b/Help/guide/tutorial/Step10/TutorialProject/CMakeLists.txt index d9ca66335f..d153893712 100644 --- a/Help/guide/tutorial/Step10/TutorialProject/CMakeLists.txt +++ b/Help/guide/tutorial/Step10/TutorialProject/CMakeLists.txt @@ -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() diff --git a/Help/guide/tutorial/Step11/TutorialProject/CMakeLists.txt b/Help/guide/tutorial/Step11/TutorialProject/CMakeLists.txt index 9a4ecbde83..40916387ea 100644 --- a/Help/guide/tutorial/Step11/TutorialProject/CMakeLists.txt +++ b/Help/guide/tutorial/Step11/TutorialProject/CMakeLists.txt @@ -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() diff --git a/Help/guide/tutorial/Step6/CMakeLists.txt b/Help/guide/tutorial/Step6/CMakeLists.txt index f699687f34..c07a1ac046 100644 --- a/Help/guide/tutorial/Step6/CMakeLists.txt +++ b/Help/guide/tutorial/Step6/CMakeLists.txt @@ -13,7 +13,9 @@ option(TUTORIAL_USE_STD_SQRT "Use std::sqrt" OFF) # set(CMAKE_INTERPROCEDURAL_OPTIMIZATION True) # Otherwise, follow the examples in the CheckIPOSupported documentation. # Specifically, follow the documentation example to emit an error message -# if IPO is unavailable. +# if IPO is unavailable. Additionally, when IPO is available, emit a +# message indicating so (otherwise IPO has no easily visible change in +# the logs or build). if(TUTORIAL_BUILD_UTILITIES) add_subdirectory(Tutorial) diff --git a/Help/guide/tutorial/Step7/CMakeLists.txt b/Help/guide/tutorial/Step7/CMakeLists.txt index 2502a38240..0b486f0d2c 100644 --- a/Help/guide/tutorial/Step7/CMakeLists.txt +++ b/Help/guide/tutorial/Step7/CMakeLists.txt @@ -10,9 +10,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() diff --git a/Help/guide/tutorial/Step8/CMakeLists.txt b/Help/guide/tutorial/Step8/CMakeLists.txt index af50f6bbd0..79f78f520e 100644 --- a/Help/guide/tutorial/Step8/CMakeLists.txt +++ b/Help/guide/tutorial/Step8/CMakeLists.txt @@ -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() diff --git a/Help/guide/tutorial/Step9/CMakeLists.txt b/Help/guide/tutorial/Step9/CMakeLists.txt index ae3401432c..7edce35130 100644 --- a/Help/guide/tutorial/Step9/CMakeLists.txt +++ b/Help/guide/tutorial/Step9/CMakeLists.txt @@ -12,9 +12,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()