CMake: Use correct CTest binary if cmake is remote

Change-Id: Ic0ad52a754ccd39bca2e406a324f9e27ec9bc9bd
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-09-08 13:21:39 +02:00
parent e8e30d6afd
commit d956ddee71

View File

@@ -756,7 +756,8 @@ void CMakeBuildSystem::handleParsingSucceeded(bool restoredFromBackup)
checkAndReportError(errorMessage);
}
m_ctestPath = FilePath::fromString(m_reader.ctestPath());
const CMakeTool *tool = m_parameters.cmakeTool();
m_ctestPath = tool->cmakeExecutable().withNewPath(m_reader.ctestPath());
setApplicationTargets(appTargets());
setDeploymentData(deploymentData());