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.tex...@ditec-gmbh.de <mailto:soeren.tex...@ditec-gmbh.de>>
Organization: DiTEC GmbH
Date: Monday, March 23, 2015 at 8:39 AM
To: "cmake@cmake.org <mailto:cmake@cmake.org>" <cmake@cmake.org <mailto:cmake@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.tex...@ditec-gmbh.de <mailto:s.tex...@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.

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to