[CMake] Why simple `cmake` does not launch default generator on current directory?

Matthew Woehlke mw_triad at users.sourceforge.net
Fri Jun 13 13:57:08 EDT 2014


On 2014-06-12 06:18, Adam Strzelecki wrote:
>> [why does 'cmake .' configure something but 'cmake' does not?]
> 
> It is clear to me that out-of-source builds are better for many reasons, but I don't see how `cmake` dumping 3 pages of usage not mentioning anything about that lets user to understand that.
> 
> Moreover there is a lack of consequence whether path argument is obligatory or not, because `cmake -GNinja` or `cmake -DDUMMY=1` works in source directory without needing to specify extra dot.

Um. Wow. I had to try that to believe it really works. That feels like a
bug to me :-). (It also means the usage lies; the usage implies that the
path is required, but apparently not...)

-- 
Matthew



More information about the CMake mailing list