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:
David Cole 2010-02-10 14:47:21 -05:00
parent 2de33ebd58
commit 90f6a7270a
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
}
}
if (!multiConfig && !cmakeBuildTypeInOptions)
if (!multiConfig && !cmakeBuildTypeInOptions &&
!this->CTest->GetConfigType().empty())
{
cmakeConfigureCommand += " \"-DCMAKE_BUILD_TYPE:STRING=";
cmakeConfigureCommand += this->CTest->GetConfigType();