Did you try to create two targets and add per-target compile flags? Something along the lines of add_library(mylib_rel ${sources}) add_library(mylib_dbg ${sources}) set_target_properties(mylib_rel PROPERTIES COMPILE_FLAGS -O3) set_target_properties(mylib_dbg PROPERTIES COMPILE_FLAGS -O0 -g)
Not entirely sure if COMPILE_FLAGS is a valid property of targets though, but I would imagine there is a solution which looks similar to this.. Cheers, Yngve On 02/06/2013 08:09 PM, Patrick Johnmeyer wrote: > I have looked through the CMake wikis and several mailing list threads > that the following google search returned, and I have not found a > definitive answer to my question. > > [site:www.cmake.org/pipermail/cmake > <http://www.cmake.org/pipermail/cmake> CPack multiple configurations > in one package] > > My team delivers debug and release libraries, built under Visual > Studio. We would like to package the debug and release libraries in a > single zip file. However, I can only figure out how to get CPack to > generate the zip for one configuration at a time. I could merge the > two zip files after the fact, but it seems to me that there must be an > easy way to get CPack to do this. Is there? > > Regards, > pj > > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake