[CMake] different compiler flags for each executable

Alan W. Irwin irwin at beluga.phys.uvic.ca
Wed Apr 28 13:51:28 EDT 2010


On 2010-04-28 18:25+0100 Alex Flint wrote:

> Hi there,
> Is there a way to add compiler flags (a la CMAKE_CXX_FLAGS) for just one
> particular executable?

Use COMPILE_FLAGS property for set_target_properties.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list