[CMake] Forwarding parameters to cmake through cmake-gui
physhh .
physhh at gmail.com
Fri Nov 1 11:39:37 EDT 2013
Hey Matthew,
that's interesting. I'm currently at a windows only machine so i can't
check out ccmake but can only lookup the source. It appears that ALL
parameters get "forwarded" to cmake - at least that's what
cmCursesMainForm.cxx:52
> this->CMakeInstance->SetArgs(this->Args);
looks to me.
Why do you think that a simple forward is not enough? ccmake seems to do it
exactly that way?
On Fri, Nov 1, 2013 at 4:12 PM, Matthew Woehlke <matthew.woehlke at kitware.com
> wrote:
> On 2013-11-01 10:47, physhh . wrote:
>
>> What I'm looking for:
>> If cmake is used directly from the command line, it's possible to pass a
>> bunch of options. This is nice because with this it's possible to use
>>
>> default settings - even if the cache get deleted.
>>
>
> ccmake accepts e.g. -D options to set CMake cache variables. It... does
> appear that cmake-gui does not. That seems like a bug (or at least a
> missing feature that one would naturally expect to exist).
>
>
> I would like to see a feature which makes it possible to pass command line
>> options to cmake-gui which get forwarded to cmake when it gets called. To
>> make this work the cmake-gui could look for parameters which look like
>> "forward-*" (where the * is a cmake option name) and pass it to cmake.
>>
>
> I'm not sure a "forward" option makes sense... what would it mean to
> "forward" e.g. -P or -E?
>
> Rather, I think cmake-gui should just accept directly those options that
> make sense, e.g. -D, -U, -C, -G, -T and probably -W[no-]dev, the same way
> that ccmake does. (Besides, these should affect cmake-gui even before cmake
> is invoked, so merely forwarding them is actually insufficient.)
> --
> Matthew
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ<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<http://cmake.org/cmake/help/support.html>
> CMake Consulting: http://cmake.org/cmake/help/**consulting.html<http://cmake.org/cmake/help/consulting.html>
> CMake Training Courses: http://cmake.org/cmake/help/**training.html<http://cmake.org/cmake/help/training.html>
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131101/0c8c6268/attachment-0001.htm>
More information about the CMake
mailing list