[CMake] compile flags per configuration in 3.2?

Parag Chandra parag at ionicsecurity.com
Mon Mar 23 09:03:16 EDT 2015


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://www.ionicsecurity.com/IonicSigHz.png]<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


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


More information about the CMake mailing list