[CMake] How to share CMakeCache between projects?
Nils Gladitz
nilsgladitz at gmail.com
Fri May 24 12:53:21 EDT 2013
You could extract the common unchanging entries into a central
configuration file which you could then load with "cmake -C
<initial-cache>" when doing the initial configuration of the
participating projects.
Nils
On 24.05.2013 17:28, Christoph Grüninger wrote:
> Hi CMake,
> in our code we have different related CMake projects but CMake does
> not really know about dependencies between the projects. It would be
> handy to have only one CMakeCache.txt for all projects to reduce
> multiple execution of the Find*.cmake tests.
> Is there a possibility to define the path to the cache file? Or is
> there another way to handle this?
>
> Bye
> Christoph
>
More information about the CMake
mailing list