[cmake-developers] [CMake 0015374]: Support generator expresssions in add_definitions()

Mantis Bug Tracker mantis at public.kitware.com
Tue Jan 27 10:14:12 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15374 
====================================================================== 
Reported By:                raspy
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15374
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-01-27 10:14 EST
Last Modified:              2015-01-27 10:14 EST
====================================================================== 
Summary:                    Support generator expresssions in add_definitions()
Description: 
Generator expressions are supported in add_compile_options(),
target_compile_options() and target_compile_definitions(), but not in
add_definitions() which leads to some inconsistency. I would make use of
generator expressions in definitions on a global level, mostly define some
symbols based on CMake's variables setup.

Please add support for generator expressions in add_definitions().
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-01-27 10:14 raspy          New Issue                                    
======================================================================



More information about the cmake-developers mailing list