diff options
author | Alex Neundorf <neundorf@kde.org> | 2016-02-24 21:13:04 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2016-02-24 21:13:04 (GMT) |
commit | aff38945d64fc56026255c9cc3c1051529887d7b (patch) | |
tree | 858cb0bb0b05b0cdddb4a7d34697e72df4e0edec /Source/cmExtraEclipseCDT4Generator.h | |
parent | 6ee6b17ed538989e38efb2eafb7f92c557eca71a (diff) | |
download | CMake-aff38945d64fc56026255c9cc3c1051529887d7b.zip CMake-aff38945d64fc56026255c9cc3c1051529887d7b.tar.gz CMake-aff38945d64fc56026255c9cc3c1051529887d7b.tar.bz2 |
Eclipse: only add C/CXX macros if the language is enabled
With this patch, the builtin macros and include dirs are only
added to the project file if the C/CXX langauges are really enabled.
I.e. before this patch the CXX-stuff was in the project file as soon
as CXX had been enabled at least once for this build tree.
I.e. disabling CXX later on did not remove the CXX macros etc.
from the project file (related to #15150)
Alex
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.h')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.h b/Source/cmExtraEclipseCDT4Generator.h index 16675f2..1da2077 100644 --- a/Source/cmExtraEclipseCDT4Generator.h +++ b/Source/cmExtraEclipseCDT4Generator.h @@ -116,6 +116,8 @@ private: bool SupportsVirtualFolders; bool SupportsGmakeErrorParser; bool SupportsMachO64Parser; + bool CEnabled; + bool CXXEnabled; }; |