[cmake-developers] [CMake 0014182]: set_property file.c PROPERTY COMPILE_FLAGS should allow a list of flags
Mantis Bug Tracker
mantis at public.kitware.com
Fri May 31 06:44:54 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14182
======================================================================
Reported By: YYrhs
Assigned To:
======================================================================
Project: CMake
Issue ID: 14182
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: low
Status: new
======================================================================
Date Submitted: 2013-05-31 06:44 EDT
Last Modified: 2013-05-31 06:44 EDT
======================================================================
Summary: set_property file.c PROPERTY COMPILE_FLAGS should
allow a list of flags
Description:
set_property(SOURCE file.c PROPERTY COMPILE_FLAGS "-DX=FOO -DBAR=ZOO")
is nice, unless you want to pass strings with spaces etc. I can't imagine
setting compile flags this way is very portable.
The alternative is to create "static libraries", set additional cflags for
those, then link agains the static libraries - but that's overkill.
Setting priority to low because I don't require the feature (evaluating
alternative configuration tools trying to find one which can run cofiguration
tests in parallel)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-05-31 06:44 YYrhs New Issue
======================================================================
More information about the cmake-developers
mailing list