Skip to content

Extra Generator: Fix extraction of macros with value 0

ibisz requested to merge ibisz/cmake:patch-1 into master

Fix logic in CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs to handle macros with value 0.

In .cproject with "Eclipse CDT4 - Ninja" generator the macros with 0 value are converted erroneusly with value=" " For ex.:

<pathentry kind="mac" name="__ATOMIC_RELAXED" path="" value=" "/>

correct is:

<pathentry kind="mac" name="__ATOMIC_RELAXED" path="" value="0"/>

Topic-rename: extra-gen-fix-0

Edited by Brad King

Merge request reports