[CMake] Conditional install

rozelak at volny.cz rozelak at volny.cz
Wed Aug 12 09:30:18 EDT 2009


Hallo, thank you very much.
Of course, the correct sequence (alternative to 'make install') is

cmake OPTIONS path_to_CMakeLists_dir
make
cmake -D COMPONENT=dist -P cmake_install.cmake path_to_CMakeLists_dir

Now it is working for the installation.
Also thank you for the links, they are very usefull ...


> For example DEB and RPM don't:
> http://public.kitware.com/Bug/view.php?id=7645
> NSIS does.
> TGZ, ZIP ==> I don't know.
> 
> What CPack generator are you using? ZIP, TGZ, NSIS,
> RPM, DEB ??

Actually, I need RPM and DEB :-(.

>
> > Do you think that my original requirement is meaningful
> > enough for feature request to be filled?
>
> Yes I think it is but may be you are "only" lacking
> the COMPONENT install for you target CPack generator.

I just thought about kind of reverse approach - to configure
what NOT TO do, and use the standard approach (make install,
make package) then; the specification of what to do in some
circumstances (using the COMPONENT) is also OK, but you must
always think twice before you start an action (install, for
example), even if you just want to a kind of 'standard' action
like install, or package (well, I mean in 'simple' cases, which
the mine is). By no means I wanted to say that
COMPONET is bad - as I read it is very powerfull ...

Thank you,
DanT.



More information about the CMake mailing list