mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-25 01:28:50 -05:00
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
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user