[Cmake] LOAD_CACHE automatic exclude
Julien Jomier
jjomier at cs.unc.edu
Thu, 5 Feb 2004 14:53:58 -0500
Hi Andy,
Thanks for the trick. It's working really well.
Julien
> -----Original Message-----
> From: Andy Cedilnik [mailto:andy.cedilnik at kitware.com]
> Sent: Thursday, February 05, 2004 12:34 PM
> To: Julien Jomier
> Cc: CMake
> Subject: Re: [Cmake] LOAD_CACHE automatic exclude
>
>
> Hi again,
>
> Sorry, my mind was somewhere else.... The command is INCLUDE
> not IMPORT.
>
> Also, you may want to look at the FIND_PACKAGE command.
>
> Andy
>
> On Thu, 2004-02-05 at 12:16, Andy Cedilnik wrote:
> > Yes. Instead of using LOAD_CACHE, you use simple IMPORT.
> >
> > So, here is what you do. In project A you configure file with the
> > following content:
> >
> > SET(OPTION1 " at OPTION1 at ")
> > SET(OPTION2 " at OPTION2 at ")
> > ...
> >
> > Then you import this file in project B, and you are all
> set. Since all
> > the options are sets, you can overwrite them.
> >
> > Look also chapter 6.7 in Mastering CMake.
>
>