diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-12 15:50:29 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-12 15:50:29 (GMT) |
commit | 01151ab79598697cace7b4940c59ae48bb062ebd (patch) | |
tree | bba4db7698f336685fbb7af67f3d25211c7059be /Source | |
parent | 96e0393dd68f3a55b42ea890358ae549dec85377 (diff) | |
download | CMake-01151ab79598697cace7b4940c59ae48bb062ebd.zip CMake-01151ab79598697cace7b4940c59ae48bb062ebd.tar.gz CMake-01151ab79598697cace7b4940c59ae48bb062ebd.tar.bz2 |
Use C flags too. Not exactly the right solution but it will have to do for now.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 95698a3..73a91dc 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -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; } |