[cmake-developers] Weird behavior with spaces in ctest_configure

David Cole david.cole at kitware.com
Mon Jul 9 06:39:44 EDT 2012


I'm wondering if we should fix the place where that warning is emitted as
well. It seems like perhaps the variable it's complaining about is "
CMAKE_BUILD_TYPE" (with a leading space) and if we had some non-white-space
bracketing characters around the variable name, the real problem would have
been suggested more strongly by the output on the dashboard. Something like:

CMake Warning:
  Manually-specified variables were not used by the project:

    [ CMAKE_BUILD_TYPE]


On Mon, Jul 9, 2012 at 6:33 AM, David Cole <david.cole at kitware.com> wrote:

> 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/76b8dec4/attachment.html>


More information about the cmake-developers mailing list