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

Ian Monroe ian at monroe.nu
Mon Apr 6 17:38:36 EDT 2009


I want to write a script that, in response to 'make distcheck', git
clones the source repo into a new directory under the build directory,
builds it and runs make test.

The issue is that if the user had to tweak their cmake settings to get
it to build thats not going to work, since the new build directory
would need to be similarly tweaked.

Is there a solution to this?

Ian


More information about the CMake mailing list