2012/5/21 Nicholas Yue <[email protected]>: > Hi, > > I can build debug and release code by setting the CMAKE_BUILD_TYPE > variable. > > What is the recommend process/workflow if I wish to build/install/package > both the Debug and Release build into a single e.g. RPM, as part of an > automated process (e.g. nightly build) ?
Currently CPack cannot do that out of the box because CMake cannot do that either. CMake requires 2 build trees for that (at least on Linux) > How will CPack find the different builds for packaging ? He won't. May be it's possible to craft your own CPackConfig.cmake file which would refer to the 2 build trees but how would you ensure that there won't be any name collision between "debug" and "release" tree? Shall they be installed in different place /prefix ? What would be the layout of the expected unique RPM ? -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- 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
