[CMake] moving project folder
Brandon Van Every
bvanevery at gmail.com
Thu Jun 7 13:32:32 EDT 2007
On 6/7/07, abhijeet mhatre <abhijeetmhatre at yahoo.com> wrote:
> Hi
> I configure cmake by writing a CMakeLists.txt file in a source folder.
> It runs fine.
>
> Now if I move the folder to some other location, cmake complains that the
> files still refer to the previous location. Then I have to edit
> CMakeCache.txt and replace the project path at 3-4 there. Then it works
> fine.
>
> Is there any elegant way to do this.
Do out-of-source builds. When you want the output to appear somewhere
else, nuke the output directory and start over.
http://www.cmake.org/Wiki/CMake_FAQ You cannot simply move CMake
output directories around in the filesystem. They use hardcoded
absolute paths for safety, so if you want them somewhere else you must
regenerate them.
Cheers,
Brandon Van Every
More information about the CMake
mailing list