[CMake] is cmake -P script.cmake -DSOMEVAR=foo supposed to work?

Brandon J. Van Every bvanevery at gmail.com
Mon Jun 12 08:18:50 EDT 2006


Alexander Neundorf wrote:
>>  Von: "Brandon J. Van Every" <bvanevery at gmail.com>
>>  
>>     
>>   
>> Well it doesn't work on my Windows command prompt.  Here's my testscript:
>>
>> MESSAGE("${DEPRESSING}")
>>
>> and here's my command line:
>>
>> E:\devel>cmake -P bwah.cmake -DDEPRESSING=killme
>>
>> E:\devel>
>>
>>     
>
> I wondered why it doesn't work for me neither, but...
> try this:
>   
>> E:\devel>cmake -DDEPRESSING=killme -P bwah.cmake
>>     
>
>   

Huh.  Done your way, it works.  Now, I think that's a bug.  I don't 
think the order of the flags should matter.


Cheers,
Brandon Van Every



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060612/ae02e346/attachment-0001.htm


More information about the CMake mailing list