CMAKE_SCRIPT_MODE_FILEΒΆ

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

When run in 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.