Commit 01151ab7 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Use C flags too. Not exactly the right solution but it will have to do for now.

parent 96e0393d
......@@ -856,9 +856,17 @@ void cmLocalVisualStudio6Generator::WriteDSPHeader(std::ostream& fout, const cha
flags = m_Makefile->GetDefinition("CMAKE_CXX_FLAGS_RELWITHDEBINFO");
flags += " -DCMAKE_INTDIR=\\\"RelWithDebInfo\\\"";
cmSystemTools::ReplaceString(line,"CMAKE_CXX_FLAGS_RELWITHDEBINFO", flags.c_str());
cmSystemTools::ReplaceString(line, "CMAKE_CXX_FLAGS",
m_Makefile->
GetDefinition("CMAKE_CXX_FLAGS"));
flags = "";
if ( m_Makefile->GetDefinition("CMAKE_C_FLAGS") )
{
flags += m_Makefile->GetDefinition("CMAKE_C_FLAGS");
}
if ( m_Makefile->GetDefinition("CMAKE_CXX_FLAGS") )
{
flags += m_Makefile->GetDefinition("CMAKE_CXX_FLAGS");
}
cmSystemTools::ReplaceString(line, "CMAKE_CXX_FLAGS", flags.c_str());
}
fout << line.c_str() << std::endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment