[CMake] Strange search order of CMakeCache.txt

Eric Noulard eric.noulard at gmail.com
Fri Mar 5 15:59:08 EST 2010


2010/3/5 kent williams <nkwmailinglists at gmail.com>:
> I recently had to help out a CMake newbie, who had run CMake in the
> source directory.  Then he re-read the instructions on build setup for
> our programs, and did it the right way -- i.e. he configured a build
> directory for an out of source build.
>
> Problem is, if you run CMake and configure the source directory, CMake
> will assume you want an in-source build, even if you try and configure
> an out-of-source build directory. So you get this mystifying behavior.

[...]

I run into this ****many**** time with users which are not CMake aware,
thus I did file a bug report:
http://public.kitware.com/Bug/view.php?id=6672

Anyone wanting to try a patch for this...
-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list