[CMake] How to specify compiler only flags
Orion Poplawski
orion at cora.nwra.com
Tue Apr 28 17:59:25 EDT 2015
On 04/28/2015 02:22 PM, Daniel Schepler wrote:
> As I understand it, configuration-specific properties are deprecated in favor of generator expressions. For example:
>
> target_compile_options(openjpeg PRIVATE
> $<$<CONFIG:Release>:-ffast-math>)
>
Thanks, that helps. Perhaps not as simple as a global variable, but perhaps
cleaner then too.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion at nwra.com
Boulder, CO 80301 http://www.nwra.com
More information about the CMake
mailing list