mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
Help: Document CMAKE_UNITY_BUILD_RELOCATABLE variable
In commit 84996a65aa
(Unity: Add option to use relative paths for unity
files, 2024-10-15, v4.0.0-rc1~637^2) we added support for this variable
to initialize the `UNITY_BUILD_RELOCATABLE` target property, but forgot
to document it.
Issue: #26352
This commit is contained in:
@@ -563,6 +563,7 @@ Variables that Control the Build
|
||||
/variable/CMAKE_TRY_COMPILE_TARGET_TYPE
|
||||
/variable/CMAKE_UNITY_BUILD
|
||||
/variable/CMAKE_UNITY_BUILD_BATCH_SIZE
|
||||
/variable/CMAKE_UNITY_BUILD_RELOCATABLE
|
||||
/variable/CMAKE_UNITY_BUILD_UNIQUE_ID
|
||||
/variable/CMAKE_VERIFY_INTERFACE_HEADER_SETS
|
||||
/variable/CMAKE_VISIBILITY_INLINES_HIDDEN
|
||||
|
9
Help/variable/CMAKE_UNITY_BUILD_RELOCATABLE.rst
Normal file
9
Help/variable/CMAKE_UNITY_BUILD_RELOCATABLE.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
CMAKE_UNITY_BUILD_RELOCATABLE
|
||||
-----------------------------
|
||||
|
||||
.. versionadded:: 4.0
|
||||
|
||||
This variable is used to initialize the :prop_tgt:`UNITY_BUILD_RELOCATABLE`
|
||||
property of targets when they are created. Setting it to true causes
|
||||
sources generated for :variable:`CMAKE_UNITY_BUILD` to ``#include`` the
|
||||
original source files using relative paths where possible.
|
Reference in New Issue
Block a user