fix #12262: use the C dependency scanner also for ASM files

Files for the ASM language are those assembler files which are processed
by the C/CXX compiler, and they may contain preprocessor directives, so
run the C dependency scanner also on them.

Alex
This commit is contained in:
Alex Neundorf 2011-10-05 21:51:35 +02:00
parent 3105dc3de6
commit e36a1be466
1 changed files with 1 additions and 1 deletions

View File

@ -1559,7 +1559,7 @@ cmLocalUnixMakefileGenerator3
// Create the scanner for this language // Create the scanner for this language
cmDepends *scanner = 0; cmDepends *scanner = 0;
if(lang == "C" || lang == "CXX" || lang == "RC") if(lang == "C" || lang == "CXX" || lang == "RC" || lang == "ASM")
{ {
// TODO: Handle RC (resource files) dependencies correctly. // TODO: Handle RC (resource files) dependencies correctly.
scanner = new cmDependsC(this, targetDir, lang.c_str(), &validDeps); scanner = new cmDependsC(this, targetDir, lang.c_str(), &validDeps);