From 94c396184eb432908dc2fa4278284a8cec0c4555 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sat, 15 Mar 2003 10:04:37 -0500 Subject: BUG: HasCXX did not use GetFileFormat and was broken --- Source/cmTarget.cxx | 4 ++-- 1 file 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::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; } -- cgit v0.12