[CMake] what is wrong with this snippet? (bug?)
Bill Hoffman
bill.hoffman at kitware.com
Thu Dec 4 17:58:31 EST 2008
Matthew Woehlke wrote:
> Matthew Woehlke wrote:
>> set(!BANG wacky CACHE STRING "" FORCE)
>> set("var with space" wacky CACHE STRING "" FORCE)
>> message(STATUS "This is !BANG: ${!BANG}")
>> message(STATUS "This is var with space: ${var with space}")
>>
>> The above snippet (as expected) causes a CMake error. What's
>> interesting is that the error is in the message, not the set. More so,
>> the variables do indeed end up in the cache!
>>
>> The utility of a variable that can't be referenced seems... dubious.
>> Should CMake prevent this?
>>
>> (cmake 2.6-2)
>
> ping?
>
Please create a bug entry. Also, don't create variables with odd
characters in them as CMake does not correctly warn that this is invalid
right now. :)
-Bill
More information about the CMake
mailing list