Re: [CMake] Is it possible to call or include CMakeCache from another CMakeCache?

2011-07-28 Thread Michael Hertling
On 07/19/2011 05:50 PM, Kevyn-Alexandre Paré wrote: Hi David, thx for the reply see below. On 2011-07-19, at 6:41 AM, David Cole wrote: On Mon, Jul 18, 2011 at 3:51 PM, Kevyn-Alexandre Paré kap...@rogue-research.com wrote: Hi, Is it possible to call or include CMakeCache from another

Re: [CMake] Is it possible to call or include CMakeCache from another CMakeCache?

2011-07-19 Thread David Cole
On Mon, Jul 18, 2011 at 3:51 PM, Kevyn-Alexandre Paré kap...@rogue-research.com wrote: Hi, Is it possible to call or include CMakeCache from another CMakeCache? I want to replace my 2 CMakeCache to one. ex: cmake -C Config-Generic.txt Config-Project.txt ../ Any idea if it's possible to

Re: [CMake] Is it possible to call or include CMakeCache from another CMakeCache?

2011-07-19 Thread Kevyn-Alexandre Paré
Hi David, thx for the reply see below. On 2011-07-19, at 6:41 AM, David Cole wrote: On Mon, Jul 18, 2011 at 3:51 PM, Kevyn-Alexandre Paré kap...@rogue-research.com wrote: Hi, Is it possible to call or include CMakeCache from another CMakeCache? I want to replace my 2 CMakeCache to one.

[CMake] Is it possible to call or include CMakeCache from another CMakeCache?

2011-07-18 Thread Kevyn-Alexandre Paré
Hi, Is it possible to call or include CMakeCache from another CMakeCache? I want to replace my 2 CMakeCache to one. ex: cmake -C Config-Generic.txt Config-Project.txt ../ Any idea if it's possible to include the Config-Generic.txt inside the Config-Project.txt? Best Regards,

Re: [CMake] Is it possible to call or include CMakeCache from another CMakeCache?

2011-07-18 Thread Jean-Christophe Fillion-Robin
Hi Kevyn-Alexandre, May be you could so something like: file(READ /path/to/Config-Generic.txt configGenericContent) file(READ /path/to/Config-Project.txt configProjectContent) file(WRITE /path/to/CMakeCache.txt ${configGenericContent}) file(APPEND /path/to/CMakeCache.txt ${configProjectContent})