[cmake-developers] Recommended way to get the definitions for a target ?

Alexander Neundorf neundorf at kde.org
Thu Sep 6 15:28:08 EDT 2012


Hi,

is there a recommended way to collect the preprocessor definitions for a target 
?
From looking around it seems I have to manually collect COMPILE_DEFINITIONS 
from the makefile, the target and the source file, and then again for each of 
those additionally the per-configuration settings.
Is this how it should be done, or is there a centralized function somewhere, 
and if not, where should it be ?

Alex



More information about the cmake-developers mailing list