summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-18 17:16:34 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-18 17:16:34 (GMT)
commitaf61b685839fae6af72ba4c4d42ebf39a7d1a324 (patch)
treeae8daed7bba06465eb594297e90a9cb7d0164a33 /Source/cmSourceFile.cxx
parent3da0f4940ab84d511e1073122da9be97aac160c8 (diff)
downloadCMake-af61b685839fae6af72ba4c4d42ebf39a7d1a324.zip
CMake-af61b685839fae6af72ba4c4d42ebf39a7d1a324.tar.gz
CMake-af61b685839fae6af72ba4c4d42ebf39a7d1a324.tar.bz2
ENH: Add support for adding object files and sources. This way you can use external program such as assembler or fortran to generate object files. Also star of fixing: Bug #757 - add .o file as a source file
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r--Source/cmSourceFile.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx
index 1f45e92..138d5d2 100644
--- a/Source/cmSourceFile.cxx
+++ b/Source/cmSourceFile.cxx
@@ -73,6 +73,11 @@ void cmSourceFile::SetName(const char* name, const char* dir,
this->SetProperty("HEADER_FILE_ONLY","0");
}
m_FullPath = hname;
+ if ( m_SourceExtension == "obj" || m_SourceExtension == "o" ||
+ m_SourceExtension == "lo" )
+ {
+ this->SetProperty("EXTERNAL_OBJECT", "1");
+ }
return;
}