<div dir="ltr">On 24 July 2017 at 04:32, Florian Lindner <span dir="ltr"><<a href="mailto:mailinglists@xgm.de" target="_blank">mailinglists@xgm.de</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br>
<br></div>[snip]<br><div>
<br>
Still, I don't undertand what is wrong with:<br>
<br>
set_property(GLOBAL APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:-FOO>)<br>
<br>
?<br></div></blockquote><div><br></div></div>What's wrong is that there is no such global property. See the list of global properties: <a href="https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html#properties-of-global-scope">https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html#properties-of-global-scope</a><br><br></div><div class="gmail_extra">COMPILE_DEFINITIONS is not among them.<br><br></div><div class="gmail_extra">You're therefore effectively creating a new user-defined global property, which of course has no effect on CMake's behaviour.<br><br></div><div class="gmail_extra">Petr<br></div></div>