only allow unique configurations
This commit is contained in:
parent
5484a691ef
commit
9ed9bffa6f
@ -55,8 +55,13 @@ void cmMSDotNETGenerator::GenerateMakefile()
|
|||||||
if(config == "Debug" || config == "Release" ||
|
if(config == "Debug" || config == "Release" ||
|
||||||
config == "MinSizeRel" || config == "RelWithDebInfo")
|
config == "MinSizeRel" || config == "RelWithDebInfo")
|
||||||
{
|
{
|
||||||
|
// only add unique configurations
|
||||||
|
if(std::find(m_Configurations.begin(),
|
||||||
|
m_Configurations.end(), config) == m_Configurations.end())
|
||||||
|
{
|
||||||
m_Configurations.push_back(config);
|
m_Configurations.push_back(config);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Invalid configuration type in CMAKE_CONFIGURATION_TYPES: ",
|
cmSystemTools::Error("Invalid configuration type in CMAKE_CONFIGURATION_TYPES: ",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user