summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_SCRIPT_MODE_FILE.rst
blob: d90a175af2790f45c83af8765e99d26fe8dfa4f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CMAKE_SCRIPT_MODE_FILE
----------------------

Full path to the :option:`cmake -P` script file currently being
processed.

When run in :option:`cmake -P` script mode, CMake sets this variable to
the full path of the script file.  When run to configure a ``CMakeLists.txt``
file, this variable is not set.

See Also
^^^^^^^^

* The :prop_gbl:`CMAKE_ROLE` global property provides the current running mode.