[CMake] CPack question.
Akshay
akshay.ranjan at gmail.com
Mon Sep 12 03:02:21 EDT 2011
Hi Eric,
Just to clarify, INSTALL command are present in the sibling source
directories' CMakeLists.txt and not in the main CMakeLists.txt. Would this
change the behavior of CPack (which is present only in the main
CMakeLists.txt) ?
Akshay
On Mon, Sep 12, 2011 at 12:18 PM, Eric Noulard <eric.noulard at gmail.com>wrote:
> 2011/9/12 Akshay <akshay.ranjan at gmail.com>:
> > Hi Eric,
>
> Hi,
>
> Please do not drop the ML address.
>
> > 'make install' puts the targets in the directories that I have set in the
> > main CMakeLists.txt.
> >I am using CMake 2.8.0 on Ubuntu x64 (Linux valhala
> > 2.6.38-10-generic #46~lucid1-Ubuntu SMP Wed Jul 6 18:41:04 UTC 2011
> x86_64
> > GNU/Linux).
>
> If "make install" is working the way you want there is no reason CPack
> wouldn't
> unless you use absolute install path in your INSTALL command.
>
> > Yes, main CMakeLists.txt is in a sibling directory. Yes, I goto
> > the directory of main CMakeLists.txt and do 'cmake CMakeLists.txt'
> followed
> > by 'make'. I have trying all options with the actual source tree.
>
> What do you mean by "all options"?
>
> > However
> > before starting, I used a single level dummy project where things worked
> > fine. I have used INCLUDE_SUBDIRECTORY() for all the source directories
> with
> > relative paths.
>
> INCLUDE_SUBDIRECTORY is not a CMake command you must be using
> ADD_SUBDIRECTORY.
>
> Could you send us your main CMakeLists.txt and an example of CMakeLists.txt
> you use in one subdir.
>
> Or better build self-contained dummy project which exhibit the issue.
>
> --
> Erk
> Membre de l'April - « promouvoir et défendre le logiciel libre » -
> http://www.april.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110912/78a8d252/attachment.htm>
More information about the CMake
mailing list