[CMake] Possible Bug in Cmake

Sumit Adhikari sumit.adhikari at gmail.com
Mon Sep 30 13:13:02 EDT 2013


Thanks. This is scary :(

Regards, Sumit


On Mon, Sep 30, 2013 at 10:32 PM, Williams, Norman K <
norman-k-williams at uiowa.edu> wrote:

> It might be confusing -- well it is confusing! -- but CMake built-in
> commands, functions and macro names are case insensitive.  CMake command
> keywords are case sensitive.
>
> The first is a legal CMake command. The second is a fatal CMake error:
>
> CMake Error at CMakeLists.txt:13 (if):
>   if given arguments:
>
>     "Darwin" "matches" "Linux"
>
>   Unknown arguments specified
>
>
>
> --
> Kent Williams norman-k-williams at uiowa.edu
>
>
>
>
>
>
> On 9/30/13 11:36 AM, "Sumit Adhikari" <sumit.adhikari at gmail.com> wrote:
>
> >Dear All,
> >
> >
> >if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
> >
> >
> >differs from
> >
> >
> >if(${CMAKE_SYSTEM_NAME} matches "Linux")
> >
> >
> >
> >Is this behavior expected ?
> >
> >
> >Regards, Sumit
> >
> >
> >
> >
> >--
> >Sumit Adhikari,
> >Senior Architect - Product Development,
> >Synphony Teleca
> >
> >
>
>
>
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by
> the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
> confidential and may be legally privileged.  If you are not the intended
> recipient, you are hereby notified that any retention, dissemination,
> distribution, or copying of this communication is strictly prohibited.
>  Please reply to the sender that you have received the message in error,
> then delete it.  Thank you.
> ________________________________
>



-- 
Sumit Adhikari,
Senior Architect - Product Development,
Synphony Teleca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130930/d2386603/attachment.htm>


More information about the CMake mailing list