mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
Merge topic 'ctest-remove-cmake-intdir'
db95afce19Tests/OutDir: Remove stale cache entry on multi-config generatorsc6134ca6c7CTest: Remove usages of CMAKE_INTDIR Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8176
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");
|
||||
|
||||
@@ -7,7 +7,7 @@ if(_isMultiConfig)
|
||||
string(TOUPPER "${config}" CONFIG)
|
||||
list(APPEND configs "${CONFIG}")
|
||||
endforeach()
|
||||
set(CMAKE_BUILD_TYPE)
|
||||
unset(CMAKE_BUILD_TYPE CACHE)
|
||||
elseif(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user