[CMake] Forcing 'out-of-source' build

Andreas Mohr andi at lisas.de
Sat Nov 27 02:51:35 EST 2010


Hi,

On Sat, Nov 27, 2010 at 01:11:06AM -0500, cmake-request at cmake.org wrote:
> Message: 5
> Date: Fri, 26 Nov 2010 15:55:55 -0600
> From: j s <j.s4403 at gmail.com>
> Subject: Re: [CMake] Forcing 'out-of-source' build
> To: Eric Noulard <eric.noulard at gmail.com>


> I'd recommend this:
> touch CMakeCache.txt
> touch CMakeFiles
> 
> Check said files into your revision control system.

... _and make sure to document that intent within their content_
(perhaps confined to CMakeCache.txt, since that is a .txt file
compatible with Windows expectations).
And add a simple "see CMakeCache.txt" to CMakeFiles.

(not that anyone unclever enough would ever happen to read these files
before getting rid of them in sub-seconds, but...)

> The fact that it can't create a directory alone makes cmake freak out almost
> immediately.

Interesting variant - seems like there are a hundred ways to Rome ;)

Andreas Mohr


More information about the CMake mailing list