[CMake] Controlling what "install" does at make-time ?

Christian Convey christian.convey at gmail.com
Thu Jul 26 12:40:45 EDT 2007


On 7/26/07, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> On Thursday 26 July 2007 11:58, Christian Convey wrote:
> > Hi Alex,
> >
> > Wouldn't the command:
> > cmake -DCMAKE_INSTALL_COMPONENT=Headers -P cmake_install.cmake
> >
> > overwrite the very makefiles that are executing that command?  If so,
>
> No, -P means cmake will just execute the given cmake script, i.e. it will not
> generate makefiles or project files etc.

OK, so "-P" means that cmake won't produce a new Makefile.

But don't I *need* to create a new Makefile?  I thought the goal was
to produce a new Makefile whose "install" target has been affected by
the "-DCMAKE_INSTALL_COMPONENT=Headers" argument.

If "-P" prevents the creation of a new Makefile, it sounds like we're
discarding the very Makefile that we're trying to create.

Would you mind clarifying?

Thanks,
Christian


More information about the CMake mailing list