From f706d8064bd487b8a2f8977bd19577b8b70dc1d1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 31 Mar 2025 19:35:30 -0400 Subject: Help: Clarify wording of UNITY_BUILD_RELOCATABLE path alternatives --- Help/prop_tgt/UNITY_BUILD_RELOCATABLE.rst | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Help/prop_tgt/UNITY_BUILD_RELOCATABLE.rst b/Help/prop_tgt/UNITY_BUILD_RELOCATABLE.rst index 74ef3b9..8e0f30d 100644 --- a/Help/prop_tgt/UNITY_BUILD_RELOCATABLE.rst +++ b/Help/prop_tgt/UNITY_BUILD_RELOCATABLE.rst @@ -12,16 +12,15 @@ When this property is set to true, the ``#include`` lines inside the generated unity source files will attempt to use relative paths to the original source files if possible in order to standardize the output of the unity file. -The unity file's path to the original source file will use the following -priority: +The unity file's path to an original source file uses the following priority: -* relative path to the generated unity file if the source file exists - directly or in subfolder under the :variable:`CMAKE_BINARY_DIR` +* a path relative to the generated unity file if the source file exists + directly in :variable:`CMAKE_BINARY_DIR`, or in a subfolder under it. -* relative path to :variable:`CMAKE_SOURCE_DIR` if the source file exists - directly or in subfolder under the :variable:`CMAKE_SOURCE_DIR` +* a path relative to :variable:`CMAKE_SOURCE_DIR` if the source file exists + directly in :variable:`CMAKE_SOURCE_DIR`, or in a subfolder under it. -* absolute path to the source file. +* an absolute path to the source file. This target property *does not* guarantee a consistent unity file across different environments as the final priority is an absolute path. -- cgit v0.12