[cmake-developers] Weird behavior with spaces in ctest_configure

David Cole david.cole at kitware.com
Mon Jul 9 06:33:07 EDT 2012


Well, the documentation is "The OPTIONS argument specifies command line
       arguments to pass to the configuration tool."

So I'd say it's more of a code bug and should be fixed in the code if
possible.

On the CMake command line we would accept either "-DCMAKE_..." or "-D"
"CMAKE_..."


On Mon, Jul 9, 2012 at 6:05 AM, Rolf Eike Beer <eike at sf-mail.de> wrote:

> I found this in one of my dashboards:
>
> CMake Warning:
>   Manually-specified variables were not used by the project:
>
>      CMAKE_BUILD_TYPE
>
> This was sort of a WTF as you may guess. I played around with it and found
> that this was caused by this instruction:
>
> ctest_configure(
>                 OPTIONS "-D CMAKE_BUILD_TYPE=Debug"
> )
>
> If I remove the space between the -D and the rest everything works fine.
> What
> is up there? This is a bug, the question is: a documentation one or a code
> one?
>
> Eike
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120709/9ce5083e/attachment.html>


More information about the cmake-developers mailing list