Fix for fix for issue #2336 - do not specify CMAKE_BUILD_TYPE when the ctest -C configuration type string is empty.
This commit is contained in:
parent
2de33ebd58
commit
90f6a7270a
|
@ -132,7 +132,8 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!multiConfig && !cmakeBuildTypeInOptions)
|
if (!multiConfig && !cmakeBuildTypeInOptions &&
|
||||||
|
!this->CTest->GetConfigType().empty())
|
||||||
{
|
{
|
||||||
cmakeConfigureCommand += " \"-DCMAKE_BUILD_TYPE:STRING=";
|
cmakeConfigureCommand += " \"-DCMAKE_BUILD_TYPE:STRING=";
|
||||||
cmakeConfigureCommand += this->CTest->GetConfigType();
|
cmakeConfigureCommand += this->CTest->GetConfigType();
|
||||||
|
|
Loading…
Reference in New Issue