mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-25 15:49:08 -05:00
Merge topic 'pr.projectbefore'
0761186949 project: Add variable CMAKE_PROJECT_INCLUDE_BEFORE
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3175
This commit is contained in:
@@ -31,6 +31,10 @@ Further variables are set by the optional arguments described in the following.
|
||||
If any of these arguments is not used, then the corresponding variables are
|
||||
set to the empty string.
|
||||
|
||||
If the variable :variable:`CMAKE_PROJECT_INCLUDE_BEFORE` exists, the file
|
||||
pointed to by that variable will be included as the first step of the project
|
||||
command.
|
||||
|
||||
If the variable :variable:`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE`
|
||||
or :variable:`CMAKE_PROJECT_INCLUDE` exists, the file pointed to by that
|
||||
variable will be included as the last step of the project command.
|
||||
|
||||
@@ -196,6 +196,7 @@ Variables that Change Behavior
|
||||
/variable/CMAKE_PREFIX_PATH
|
||||
/variable/CMAKE_PROGRAM_PATH
|
||||
/variable/CMAKE_PROJECT_INCLUDE
|
||||
/variable/CMAKE_PROJECT_INCLUDE_BEFORE
|
||||
/variable/CMAKE_PROJECT_PROJECT-NAME_INCLUDE
|
||||
/variable/CMAKE_SKIP_INSTALL_ALL_DEPENDENCY
|
||||
/variable/CMAKE_STAGING_PREFIX
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
cmake_project_include_before
|
||||
----------------------------
|
||||
|
||||
* A variable :variable:`CMAKE_PROJECT_INCLUDE_BEFORE` was added to allow
|
||||
injection of custom code into the project.
|
||||
@@ -0,0 +1,6 @@
|
||||
CMAKE_PROJECT_INCLUDE_BEFORE
|
||||
----------------------------
|
||||
|
||||
A CMake language file or module to be included before processing the
|
||||
:command:`project` command. This is intended for injecting custom code into
|
||||
project builds without modifying their source.
|
||||
Reference in New Issue
Block a user