mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
Help: Document cases of variables modification having undefined behavior
This commit is contained in:
1 parent
77eedda812
commit
46279eff38
4 files changed
+8
No files matched your search
@@ -11,3 +11,5 @@ When run in :option:`cmake -P` script mode, CMake sets the variables
|
||||
``CMAKE_BINARY_DIR``, :variable:`CMAKE_SOURCE_DIR`,
|
||||
:variable:`CMAKE_CURRENT_BINARY_DIR` and
|
||||
:variable:`CMAKE_CURRENT_SOURCE_DIR` to the current working directory.
|
||||
|
||||
Modifying ``CMAKE_BINARY_DIR`` has undefined behavior.
|
||||
@@ -13,3 +13,5 @@ When run in :option:`cmake -P` script mode, CMake sets the variables
|
||||
:variable:`CMAKE_BINARY_DIR`, :variable:`CMAKE_SOURCE_DIR`,
|
||||
``CMAKE_CURRENT_BINARY_DIR`` and
|
||||
:variable:`CMAKE_CURRENT_SOURCE_DIR` to the current working directory.
|
||||
|
||||
Modifying ``CMAKE_CURRENT_BINARY_DIR`` has undefined behavior.
|
||||
@@ -10,3 +10,5 @@ When run in :option:`cmake -P` script mode, CMake sets the variables
|
||||
:variable:`CMAKE_BINARY_DIR`, :variable:`CMAKE_SOURCE_DIR`,
|
||||
:variable:`CMAKE_CURRENT_BINARY_DIR` and
|
||||
``CMAKE_CURRENT_SOURCE_DIR`` to the current working directory.
|
||||
|
||||
Modifying ``CMAKE_CURRENT_SOURCE_DIR`` has undefined behavior.
|
||||
@@ -11,3 +11,5 @@ When run in :option:`cmake -P` script mode, CMake sets the variables
|
||||
:variable:`CMAKE_BINARY_DIR`, ``CMAKE_SOURCE_DIR``,
|
||||
:variable:`CMAKE_CURRENT_BINARY_DIR` and
|
||||
:variable:`CMAKE_CURRENT_SOURCE_DIR` to the current working directory.
|
||||
|
||||
Modifying ``CMAKE_SOURCE_DIR`` has undefined behavior.
|
||||
Reference in new issue
Block a user