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.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
-- 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