[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Why simple `cmake` does not launch default generator on current directory?
From:       Rolf Eike Beer <eike () sf-mail ! de>
Date:       2014-06-11 19:39:05
Message-ID: 15420075.yrCUhXV6Sa () eto
[Download RAW message or body]

Adam Strzelecki wrote:
> Hello,
> 
> We started using CMake recently in our projects. And it is really a
> timesaver comparing to Qmake/autotools, however there is one thing that
> bothers me.
> 
> Why typing simple: cmake in command line doesn't trigger configure with
> default generator (i.e. Makefile)? It just prints help, which is anyway
> accessible via cmake -h/--help.
> 
> This is really weird comparing to other tools such as ./configure, quake,
> make, that do not expect any parameter to launch them up.
> 
> Fortunately there is `cmake .`, but the dot is kinda superfluous.

Because that would create an in-source build, and you almost never want that. 
One wants to build out of source. Sadly CMake will stumble if you try to 
create an out-of-source build from a directory that is an in-source build, so 
not having that default of "cmake ." actually saves everyone a lot of trouble.

Eike
-- 

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic