[Cmake] LOAD_CACHE automatic exclude
Andy Cedilnik
andy.cedilnik at kitware.com
Thu, 05 Feb 2004 12:33:51 -0500
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.