summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorYves Starreveld <ystarrev@uwo.ca>2001-09-01 01:10:46 (GMT)
committerYves Starreveld <ystarrev@uwo.ca>2001-09-01 01:10:46 (GMT)
commit7aa0d0d888e2b36618d81e078ee8fad175031b94 (patch)
treed7686e99ece05a21557befb6ceb092c2985c1202 /Source
parent3091e9b8f619a5402a7390338e2082d4e20a3dbf (diff)
downloadCMake-7aa0d0d888e2b36618d81e078ee8fad175031b94.zip
CMake-7aa0d0d888e2b36618d81e078ee8fad175031b94.tar.gz
CMake-7aa0d0d888e2b36618d81e078ee8fad175031b94.tar.bz2
ENH: Generate compile lines for .m, .M, and .mm files (ObjC and ObjC++)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index a1323d7..96731da 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";