From: Manuel Nickschas Date: Mon, 13 Aug 2018 21:50:24 +0000 (+0200) Subject: cmake: Fix source-specific compile definitions X-Git-Tag: test-travis-01~166 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=1e40fc6bc04df8f658f677ca5be4c970f150dc10;hp=1e40fc6bc04df8f658f677ca5be4c970f150dc10 cmake: Fix source-specific compile definitions set_source_files_properties() overwrites previously specified properties and does not have a way to append, which is bad when e.g. conditionally adding multiple compile definitions to a file. In this particular case, for main.cpp -DHAVE_UMASK would overwrite -DEMBED_DATA, and thus resources would not be loaded. Use set_property(SOURCE... APPEND PROPERTY...) instead. ---