[CMake] load CMakeCache.txt settings into new build directory?

Ian Monroe ian at monroe.nu
Tue Apr 7 13:25:24 EDT 2009


On Tue, Apr 7, 2009 at 10:04 AM, John Drescher <drescherjm at gmail.com> wrote:
>> But I don't really know what the users needs. Like for me I don't need
>> to pass any options. Others might have had to tweak things to
>> recognize a given library.
>>
>> I wonder if I could just run a find&replace regex on the
>> CMakeCache.txt to change the build directory.
>>
>
> I am pretty sure I have done that manually with itk or vtk to avoid
> having to figure out what I set during a version upgrade.

Yep turns out it works well. For some reason I didn't think it'd be that easy.

Ian


More information about the CMake mailing list