CMAKE_SCRIPT_MODE_FILE — CMake 3.4.3 Documentation

### Navigation

- index
- next |
- previous |
- CMake »
- 3.4.3 Documentation »
- cmake-variables(7) »

# CMAKE_SCRIPT_MODE_FILE

Full path to the `cmake(1)` `-P` script file currently being processed.

When run in `cmake(1)` `-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.

### Navigation

- index
- next |
- previous |
- CMake »
- 3.4.3 Documentation »
- cmake-variables(7) »