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

Kevyn-Alexandre Paré kapare at rogue-research.com
Tue Jul 19 11:02:10 EDT 2011


Hi JC,

thx mmm ok. Will look at this.

Kevyn-Alexandre

On 2011-07-18, at 6:20 PM, Jean-Christophe Fillion-Robin wrote:

> 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})
> 
> Hth
> Jc
> 
> On Mon, Jul 18, 2011 at 3:51 PM, Kevyn-Alexandre Paré <kapare at 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 include the Config-Generic.txt inside the Config-Project.txt?
> 
> Best Regards,
> 
> Kevyn-Alexandre Paré
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
> 
> 
> 
> -- 
> +1 919 869 8849
> 



More information about the CMake mailing list