CMakePM: Add QTC_RUN environment variable for the CMake run

This way one can do certain things knowing that CMake is being run in Qt
Creator.

Change-Id: If3ac8a52f30f9fa73a756212199a25632c757dcd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Cristian Adam
2023-02-20 17:31:36 +01:00
parent b625e8bb9b
commit 10bbc7ce33
2 changed files with 9 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ BuildDirParameters::BuildDirParameters(CMakeBuildSystem *buildSystem)
if (Utils::HostOsInfo::isAnyUnixHost())
environment.set("ICECC", "no");
environment.set("QTC_RUN", "1");
cmakeToolId = CMakeKitAspect::cmakeToolId(k);
}