diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-03-15 15:04:37 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-03-15 15:04:37 (GMT) |
commit | 94c396184eb432908dc2fa4278284a8cec0c4555 (patch) | |
tree | a24e5c3f178ca6900cc3822af068b678157fc061 /Source/cmTarget.cxx | |
parent | 858056bbc3211f8f55fde9ea3c0eb3699a16680c (diff) | |
download | CMake-94c396184eb432908dc2fa4278284a8cec0c4555.zip CMake-94c396184eb432908dc2fa4278284a8cec0c4555.tar.gz CMake-94c396184eb432908dc2fa4278284a8cec0c4555.tar.bz2 |
BUG: HasCXX did not use GetFileFormat and was broken
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 602f826..badbd2b 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -243,8 +243,8 @@ bool cmTarget::HasCxx() const for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin(); i != m_SourceFiles.end(); ++i) { - if((*i)->GetSourceExtension() != "c" && - (*i)->GetSourceExtension() != "h") + if(cmSystemTools::GetFileFormat((*i)->GetSourceExtension().c_str()) + == cmSystemTools::CXX_FILE_FORMAT) { return true; } |