Re: [CMake] get complete list of compile definitions

2017-04-05 Thread Volker Enderlein
Am 04/04/2017 um 11:17 schrieb Magnus Therning: Robert Schwarzelt writes: Hi all, I need to implement a code export function, that will only export code used in a specific project configuration. For this purpose I want to use unifdef (http://dotat.at/prog/unifdef/),

Re: [CMake] get complete list of compile definitions

2017-04-04 Thread Magnus Therning
Robert Schwarzelt writes: > Hi all, > I need to implement a code export function, that will only export code used > in a specific project configuration. > For this purpose I want to use unifdef (http://dotat.at/prog/unifdef/), > which is capable of removing unused #ifdef

[CMake] get complete list of compile definitions

2017-03-29 Thread Robert Schwarzelt
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: "$" Regards, Robert Schwarzelt -- Powered by

[CMake] get complete list of compile definitions

2017-03-29 Thread Robert Schwarzelt
Hi all, I need to implement a code export function, that will only export code used in a specific project configuration. For this purpose I want to use unifdef (http://dotat.at/prog/unifdef/), which is capable of removing unused #ifdef blocks. The project uses static libraries like in following