cmake: Fix source-specific compile definitions
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 13 Aug 2018 21:50:24 +0000 (23:50 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commit1e40fc6bc04df8f658f677ca5be4c970f150dc10
tree0c409b33740a193c3b61b6bd42a4919dd6419d04
parentbad087a1b604c92c7c0bf3cf818b81d26e15c1c4
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.
src/core/CMakeLists.txt
src/main/CMakeLists.txt