[CMake] Possible Bug in Cmake

Williams, Norman K norman-k-williams at uiowa.edu
Mon Sep 30 13:02:52 EDT 2013


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.
________________________________


More information about the CMake mailing list