diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-04-22 18:38:17 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-04-22 18:38:17 (GMT) |
commit | 86bf9f396e4c78ec7286d5a9a40ee483051cd640 (patch) | |
tree | 353ab7379f3c422873bda4a70744827e1a4c87ee /Source | |
parent | 161c31bc2b282cb168944df85755ff1373c5f8f7 (diff) | |
download | CMake-86bf9f396e4c78ec7286d5a9a40ee483051cd640.zip CMake-86bf9f396e4c78ec7286d5a9a40ee483051cd640.tar.gz CMake-86bf9f396e4c78ec7286d5a9a40ee483051cd640.tar.bz2 |
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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTarget.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 6570754..7b7db49 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<cmSourceFile*>::const_iterator i = m_SourceFiles.begin(); i != m_SourceFiles.end(); ++i) { |