[CMake] using component install still installs all files

Rosen Diankov rosen.diankov at gmail.com
Thu Apr 21 00:40:19 EDT 2011


Hi all,

nevermind, i should have noticed that

cmake -DCOMPONENT=MYCOMP -DCMAKE_INSTALL_PREFIX=tempdir -P cmake_install.cmake

does the copy of the files directly

rosen,

2011/4/21 Rosen Diankov <rosen.diankov at gmail.com>:
> hi all,
>
> we're making a debian source package which requires the cmake command to be:
>
> cmake -DCMAKE_INSTALL_PREFIX=/usr .
>
> in order to get the individual component files installed we do:
>
> cmake -DCOMPONENT=MYCOMP -DCMAKE_INSTALL_PREFIX=tempdir -P cmake_install.cmake
> make install
>
> although this installs all MYCOMP files in tempdir, it also installs
> all files into /usr
>
> How can we tell cmake to ignore installing into /usr? In order to get
> the linking correct, we need to set /usr, but that doesn't have write
> permissions, so things fail.
>
> thank you,
> rosen diankov,
>


More information about the CMake mailing list