[CMake] CPack: Combine Debug and Release build

clinton at elemtech.com clinton at elemtech.com
Thu Aug 18 11:09:52 EDT 2016


One thing I've done before is to tell cpack to bundle up 2 projects in one cpack session. 
One project is a debug build, and the other a release build. 

if ( CREATE_MULTI_CONFIG_PACKAGE ) 
set (CPACK_INSTALL_CMAKE_PROJECTS 
# self project 
" ${CMAKE_CURRENT_BINARY_DIR} ; ${CMAKE_PROJECT_NAME} ;ALL;/" 
# other project 
" ${DIR_TO_OTHER_PROJECT} ; ${CMAKE_PROJECT_NAME} ;ALL;/" 
) 
endif () 

----- On Aug 18, 2016, at 5:12 AM, tonka tonka <tonka3100 at gmail.com> wrote: 

> Hey,

> I want to switch to cpack to build my zip, installer etc.. Everything works
> fine, but I am not able to get my debug build into my cpack end file. It will
> always use the release build, which is fine for end-user deployment but not for
> and sdk installer, because on windows I have to provide both
> build-configurations.

> Can anybody give me some advice what I can do to get such result?

> Thanks in advance
> Tonka
> --

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160818/7ee03075/attachment.html>


More information about the CMake mailing list