[CMake] CPack: Project and independent subproject

Eric Noulard eric.noulard at gmail.com
Tue Oct 23 05:11:01 EDT 2012


2012/10/23 Romain LEGUAY <romain.leguay at gmail.com>:
> Thank you Eric,
>
> I succeed to create the package by using CPACK_INSTALL_CMAKE_PROJECTS
> variable.
>
> I have some problem now to put my package in a specific folder. I try to set
> CPACK_TOPLEVEL_TAG variable but there is no change...

Toplevel won't be included unless you set
CPACK_INCLUDE_TOPLEVEL_DIRECTORY

however..

The variables you may be looking for are either
CPACK_PACKAGE_INSTALL_DIRECTORY
or
CPACK_PACKAGING_INSTALL_PREFIX

depending on the generator used. As usual:

cpack --help-variable CPACK_INCLUDE_TOPLEVEL_DIRECTORY
cpack --help-variable CPACK_PACKAGE_INSTALL_DIRECTORY
cpack --help-variable CPACK_PACKAGING_INSTALL_PREFIX


>> By the does your Demo/ directory have a "project(...)" command in its
>> CMakeLists.txt?
>>
> No I didn't put any project(...) in Demo/ or Application/ directories.
>
> Thanks again for your help,

You are welcome.


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list