[CMake] Forwarding parameters to cmake through cmake-gui

Bill Hoffman bill.hoffman at kitware.com
Fri Nov 1 11:56:58 EDT 2013


On 11/1/2013 10:47 AM, physhh . wrote:
> If cmake is used directly from the command line, it's possible to pass a
> bunch of options
> (http://www.cmake.org/cmake/help/v2.8.12/cmake.html#section_Options).
> This is nice because with this it's possible to use default settings -
> even if the cache get deleted. I'm actually really interested in this
> because it would be possible to set the CMAKE_MODULE_PATH variable via
> batch file - which is neat for custom find modules in custom locations.
Branching the topic a bit.

cmake-gui should most likely be updated to take the same arguments that 
ccmake and cmake take.

However, if you are setting CMAKE_MODULE_PATH, the best place to do it 
is in the CMake code of your project.   That way your project will stand 
on its own and not require special command line options to build (which 
is bad IMO).

-Bill



More information about the CMake mailing list