Just in case anyone is interested - I found a hint in this old thread: https://cmake.org/pipermail/cmake/2014-February/056993.html Trick is to use a generator expression like this: "$<TARGET_PROPERTY:${target_name},COMPILE_DEFINITIONS>" Regards, Robert Schwarzelt