Fix compile flags on c files in static liobraries on windows
This commit is contained in:
parent
115ea25dab
commit
4b0c9ee2be
|
@ -2206,19 +2206,17 @@ OutputBuildObjectFromSource(std::ostream& fout,
|
||||||
rules.push_back(m_Makefile->GetDefinition("CMAKE_C_COMPILE_OBJECT"));
|
rules.push_back(m_Makefile->GetDefinition("CMAKE_C_COMPILE_OBJECT"));
|
||||||
flags += this->GetSafeDefinition("CMAKE_C_FLAGS");
|
flags += this->GetSafeDefinition("CMAKE_C_FLAGS");
|
||||||
flags += " ";
|
flags += " ";
|
||||||
|
if(buildType.size())
|
||||||
|
{
|
||||||
|
std::string build = "CMAKE_C_FLAGS_";
|
||||||
|
build += buildType;
|
||||||
|
flags += this->GetSafeDefinition(build.c_str());
|
||||||
|
flags += " ";
|
||||||
|
}
|
||||||
if(shared)
|
if(shared)
|
||||||
{
|
{
|
||||||
flags += this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_C_FLAGS");
|
flags += this->GetSafeDefinition("CMAKE_SHARED_LIBRARY_C_FLAGS");
|
||||||
flags += " ";
|
flags += " ";
|
||||||
flags += this->GetSafeDefinition("CMAKE_C_FLAGS");
|
|
||||||
flags += " ";
|
|
||||||
if(buildType.size())
|
|
||||||
{
|
|
||||||
std::string build = "CMAKE_C_FLAGS_";
|
|
||||||
build += buildType;
|
|
||||||
flags += this->GetSafeDefinition(build.c_str());
|
|
||||||
flags += " ";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue