From 7aa0d0d888e2b36618d81e078ee8fad175031b94 Mon Sep 17 00:00:00 2001 From: Yves Starreveld Date: Fri, 31 Aug 2001 21:10:46 -0400 Subject: [PATCH] ENH: Generate compile lines for .m, .M, and .mm files (ObjC and ObjC++) --- Source/cmUnixMakefileGenerator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index a1323d7b1..96731daad 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1399,7 +1399,8 @@ void cmUnixMakefileGenerator::OutputSourceObjectBuildRules(std::ostream& fout) rules.insert(shortName); fout << shortName.c_str() << ".o : " << sourceName.c_str() << "\n"; std::string ext = source->GetSourceExtension(); - if ( ext == "cxx" || ext == "cc" || ext == "cpp" || ext == "C" ) + if ( ext == "cxx" || ext == "cc" || ext == "cpp" || ext == "C" || + ext =="m" || ext == "M" || ext == "mm") { fout << "\t${CMAKE_CXX_COMPILER} ${CMAKE_CXXFLAGS} " << exportsDef.c_str() << (shared? "${CMAKE_SHLIB_CFLAGS} ":"") << "${INCLUDE_FLAGS} -c $< -o $@\n\n";