diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2019-10-18 10:51:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-18 18:44:24 (GMT) |
commit | f7acc1266c64be58793cf926b41f0d58b5a55e2a (patch) | |
tree | b3931ee79ad4debbf5cd16112edb6accfa8ab162 /Help/command | |
parent | 154aa87ca6bd906b6422ad81f51161995c89cc14 (diff) | |
download | CMake-f7acc1266c64be58793cf926b41f0d58b5a55e2a.zip CMake-f7acc1266c64be58793cf926b41f0d58b5a55e2a.tar.gz CMake-f7acc1266c64be58793cf926b41f0d58b5a55e2a.tar.bz2 |
project: Add variable CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE_BEFORE
Follow up commit 0761186949 (project: Add variable
CMAKE_PROJECT_INCLUDE_BEFORE, 2019-03-28, v3.15.0-rc1~294^2) with a
project-specific variant. This variable will be used similar to the
already existing `CMAKE_PROJECT_INCLUDE_BEFORE` and
`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE` variables.
Fixes: #19854
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/project.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Help/command/project.rst b/Help/command/project.rst index 3951456..b6093d3 100644 --- a/Help/command/project.rst +++ b/Help/command/project.rst @@ -102,9 +102,12 @@ options are intended for use as default values in package metadata and documenta Code Injection ^^^^^^^^^^^^^^ -If the :variable:`CMAKE_PROJECT_INCLUDE_BEFORE` variable is set, the file -pointed to by that variable will be included as the first step of the +If the :variable:`CMAKE_PROJECT_INCLUDE_BEFORE` or +:variable:`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE_BEFORE` variables are set, +the files they point to will be included as the first step of the ``project()`` command. +If both are set, then :variable:`CMAKE_PROJECT_INCLUDE_BEFORE` will be +included before :variable:`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE_BEFORE`. If the :variable:`CMAKE_PROJECT_INCLUDE` or :variable:`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE` variables are set, the files |