diff options
Diffstat (limited to 'Help/prop_tgt/IMPORTED_GLOBAL.rst')
-rw-r--r-- | Help/prop_tgt/IMPORTED_GLOBAL.rst | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Help/prop_tgt/IMPORTED_GLOBAL.rst b/Help/prop_tgt/IMPORTED_GLOBAL.rst index 1feca04..1a9129f 100644 --- a/Help/prop_tgt/IMPORTED_GLOBAL.rst +++ b/Help/prop_tgt/IMPORTED_GLOBAL.rst @@ -16,7 +16,15 @@ property for such a locally ``IMPORTED`` target to True promotes that target to global scope. This promotion can only be done in the same directory where that ``IMPORTED`` target was created in the first place. -Once an imported target has been made global, it cannot be changed back to -non-global. Therefore, if a project sets this property, it may only -provide a value of True. CMake will issue an error if the project tries to -set the property to a non-True value, even if the value was already False. +.. note:: + + Once an imported target has been made global, it cannot be changed back to + non-global. Therefore, if a project sets this property, it may only + provide a value of True. CMake will issue an error if the project tries to + set the property to a non-True value, even if the value was already False. + +.. note:: + + Local :ref:`ALIAS targets <Alias Targets>` created before promoting an + :ref:`IMPORTED target <Imported Targets>` from ``LOCAL`` to ``GLOBAL``, keep + their initial scope (see :prop_tgt:`ALIAS_GLOBAL` target property). |