[CMake] compile flags per configuration in 3.2?

"Dr. Sören Textor" soeren.textor at ditec-gmbh.de
Mon Mar 23 09:11:54 EDT 2015


No, you are dealing with the global flag.

But that's not the way I want to go, because I have several targets and 
need serveral compile flags for each target

Am 23.03.2015 um 14:03 schrieb Parag Chandra:
> Have you looked at CMAKE_<LANG>_FLAGS_<CONFIG>, e.g.
>
> http://www.cmake.org/cmake/help/v3.1/variable/CMAKE_LANG_FLAGS_DEBUG.html
>
> I’ve been using these for exactly the purpose you describe.
>
>
>
>
> *Parag Chandra
> *Senior Software Engineer, Mobile Team
> Mobile: +1.919.824.1410
>
> <https://ionic.com>
>
> Ionic Security Inc.
> 1170 Peachtree St. NE STE 400, Atlanta, GA 30309
>
> 	
> 	
> 	
>
> 	
> 	
> 	
>
>
> From: "Dr. Sören Textor" <soeren.textor at ditec-gmbh.de 
> <mailto:soeren.textor at ditec-gmbh.de>>
> Organization: DiTEC GmbH
> Date: Monday, March 23, 2015 at 8:39 AM
> To: "cmake at cmake.org <mailto:cmake at cmake.org>" <cmake at cmake.org 
> <mailto:cmake at cmake.org>>
> Subject: [CMake] compile flags per configuration in 3.2?
>
> Hello
> Since cmake 2.0 I would like to have the possibilty to add compile 
> flags for certain configurations.
>
> For linker flags it runs very well with set_targer_properties and 
> LINK_FLAGS_<CONFIG>. But that doesn't wokr for the compile flags.
>
> Exits a possibility in 3.2 meanwhile?
>
> Best regards,
> SirAnn
>
>

-- 
Dr.-Ing. Sören Textor
Softwareentwicklung

phone | +49 6221 31698 225

fax | +49 6221 31698 399

email | s.textor at ditec-gmbh.de <mailto:s.textor at ditec-gmbh.de>

web | http://www.ditec-gmbh.de

DiTEC Dr. Siegfried Kahlich & Dierk Langer GmbH

Im Breitspiel 19 | 69126 Heidelberg | Germany

Handelsregister | Mannheim | HRB 341229

Dieses Dokument ist vertraulich zu behandeln. Die Weitergabe, sowie 
Vervielfältigung, Verwertung und Mitteilung seines Inhalts ist nur mit 
unserer ausdrücklichen Genehmigung gestattet. Alle Rechte vorbehalten, 
insbesondere für den Fall der Schutzrechtsanmeldung.

This document has to be treated confidentially. Its contents are not to 
be passed on, duplicated, exploited or disclosed without our express 
permission. All rights reserved, especially the right to apply for 
protective rights.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150323/fac02fba/attachment-0001.html>


More information about the CMake mailing list