Re: [CMake] CMake and user friendliness

2014-09-22 Thread Adam Strzelecki
Please install cmake bash_completion and then it will be easy as typing: cmake 
-D

--Adam
-- 

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://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] Feature Request: CMAKE_GENERATOR environment variable for default generator

2014-06-12 Thread Adam Strzelecki
>alias c=''\''C:/Program Files (x86)/CMake/bin/cmake.exe'\'' -G Ninja'

Aliasing is kind of solution I use now, since cmake allows -G specified twice. 
But IMHO environment variable would be nice addition. Btw. not using Windows 
here ;)

Cheers,
-- 
Adam
-- 

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


[CMake] Feature Request: CMAKE_GENERATOR environment variable for default generator

2014-06-12 Thread Adam Strzelecki
Long story short currently default generator is hard-coded in CMake depending 
on platform. It would be convenient to let user specify it's favorite generator 
in .profile/.bash_profile so it spares lot of command line typing.

I'd love to make CMAKE_GENERATOR=Ninja then :)

WDYT?

-- 
Adam
-- 

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


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

2014-06-12 Thread Adam Strzelecki
> 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.

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.

In-source builds may be convenient too if you're working remotely via ssh in 
git managed folder, which I do a lot. This saves you lot of `cd` typing and it 
is quicker to do `git clean ...` than move forth and back to build folder.

If CMake is supposed to be meta-`make`, why it doesn't behave like `make`? If 
it suppose to help understand what is going on it should output rather:

===
CMake Warning: Current directory is source directory. Out-of-source builds are 
recommended.
Specify `cmake .` to skip this warning or create separate build folder.
===

But I am really against that, since command line user shouldn't be treated like 
stupid user. Anyway for beginners GUI is preferred way to go.

Regards,
-- 
Adam
-- 

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


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

2014-06-11 Thread Adam Strzelecki
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.

Regards,
-- 
Adam
-- 

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