diff options
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 19172f9..92ff2d7 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -532,6 +532,14 @@ int cmake::AddCMakePaths(const char *arg0) editCacheCommand = cmSystemTools::GetFilenamePath(cMakeSelf) + "/CMakeSetup" + cmSystemTools::GetFilenameExtension(cMakeSelf); } + std::string ctestCommand = cmSystemTools::GetFilenamePath(cMakeSelf) + + "/ctest" + cmSystemTools::GetFilenameExtension(cMakeSelf); + if(cmSystemTools::FileExists(ctestCommand.c_str())) + { + this->m_CacheManager->AddCacheEntry + ("CMAKE_CTEST_COMMAND", ctestCommand.c_str(), + "Path to ctest program executable.", cmCacheManager::INTERNAL); + } if(cmSystemTools::FileExists(editCacheCommand.c_str())) { this->m_CacheManager->AddCacheEntry |