mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-25 09:58:37 -05:00
CTest: Remove usages of CMAKE_INTDIR
The configuration in which CMake/CTest itself is built should not influence runtime path selection.
This commit is contained in:
@@ -72,11 +72,6 @@ int cmCTestBuildAndTestHandler::RunCMake(std::string* outstring,
|
||||
if (!this->CTest->GetConfigType().empty()) {
|
||||
config = this->CTest->GetConfigType().c_str();
|
||||
}
|
||||
#ifdef CMAKE_INTDIR
|
||||
if (!config) {
|
||||
config = CMAKE_INTDIR;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (config) {
|
||||
args.push_back("-DCMAKE_BUILD_TYPE:STRING=" + std::string(config));
|
||||
@@ -256,11 +251,6 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
|
||||
if (!this->CTest->GetConfigType().empty()) {
|
||||
config = this->CTest->GetConfigType().c_str();
|
||||
}
|
||||
#ifdef CMAKE_INTDIR
|
||||
if (!config) {
|
||||
config = CMAKE_INTDIR;
|
||||
}
|
||||
#endif
|
||||
if (!config) {
|
||||
config = "Debug";
|
||||
}
|
||||
|
||||
@@ -89,11 +89,7 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
|
||||
}
|
||||
}
|
||||
if (cmakeBuildConfiguration.empty()) {
|
||||
#ifdef CMAKE_INTDIR
|
||||
cmakeBuildConfiguration = CMAKE_INTDIR;
|
||||
#else
|
||||
cmakeBuildConfiguration = "Debug";
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string dir = this->CTest->GetCTestConfiguration("BuildDirectory");
|
||||
|
||||
Reference in New Issue
Block a user