summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorJoseph Snyder <joe.snyder@kitware.com>2021-09-30 16:06:15 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-05 13:22:33 (GMT)
commit5632933304a236f8c7aa227cb69601c82683d0d5 (patch)
treea252f5478ccb77e7401022fcc4263e473d0188db /Help
parent3d192b09d139bc53903b981ba39d6cee46798cda (diff)
downloadCMake-5632933304a236f8c7aa227cb69601c82683d0d5.zip
CMake-5632933304a236f8c7aa227cb69601c82683d0d5.tar.gz
CMake-5632933304a236f8c7aa227cb69601c82683d0d5.tar.bz2
Tutorial: Add version update instructions to Step 10
Add instructions to update the cmake_minimum_required version to 3.15 just before the usage of COMPILE_LANG_AND_ID Issue: #22663
Diffstat (limited to 'Help')
-rw-r--r--Help/guide/tutorial/Adding Generator Expressions.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/guide/tutorial/Adding Generator Expressions.rst b/Help/guide/tutorial/Adding Generator Expressions.rst
index 55acb34..7fcc97f 100644
--- a/Help/guide/tutorial/Adding Generator Expressions.rst
+++ b/Help/guide/tutorial/Adding Generator Expressions.rst
@@ -53,6 +53,16 @@ Would be replaced with:
:start-after: project(Tutorial VERSION 1.0)
:end-before: # add compiler warning flags just when building this project via
+**Note**: This upcoming section will require a change to the
+:command:`cmake_minimum_required` usage in the code. The Generator Expression
+that is about to be used was introduced in `3.15`. Update the call to require
+that more recent version:
+
+.. code-block:: cmake
+ :caption: CMakeLists.txt
+ :name: CMakeLists.txt-version-update
+
+ cmake_minimum_required(VERSION 3.15)
Next we add the desired compiler warning flags that we want for our project. As
warning flags vary based on the compiler we use the ``COMPILE_LANG_AND_ID``