[CMake] get complete list of compile definitions

Robert Schwarzelt rschwarzelt at gmail.com
Wed Mar 29 11:16:24 EDT 2017


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




More information about the CMake mailing list