From 86bf9f396e4c78ec7286d5a9a40ee483051cd640 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 22 Apr 2004 14:38:17 -0400 Subject: [PATCH] ENH: add a property for HAS_CXX to a target that will force the use of a c++ compiler in the linking of an executable that contains only c code --- Source/cmTarget.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 65707542b..7b7db4900 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -421,6 +421,10 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf, bool cmTarget::HasCxx() const { + if(this->GetProperty("HAS_CXX")) + { + return true; + } for(std::vector::const_iterator i = m_SourceFiles.begin(); i != m_SourceFiles.end(); ++i) {