[CMake] Automatic out of source build's possible?

Eric Noulard eric.noulard at gmail.com
Tue Feb 8 03:44:18 EST 2011


2011/2/8 Michael Wild <themiwi at gmail.com>:
> And there's the hidden trap that the -D options must be *before* the -P
> option. Very nasty, especially for people who never used CMake before.

Yes right I was caught by that in the past.

> On 02/08/2011 09:27 AM, Martin O'Brien wrote:
>> Absolutely, and that is what I do in some cases, but in the particular case
>> that I described - which is what I had in mind; I should have been clearer -
>> it doesn't help, as it's still -D... syntax.

Ok then may be you can propose a patch for some generic

--enable-<XXXX>
--disable-<XXXX>

cmake command line option that will be automatically translated to

-DXXXX=ON

seems do-able.
I don't know if many people would like it ?
-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list