[CMake] CPack question.

Eric Noulard eric.noulard at gmail.com
Mon Sep 12 02:48:29 EDT 2011


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


More information about the CMake mailing list