CMP0064 broken?

David Faure faure at kde.org
Mon Dec 21 21:13:32 UTC 2015


KDE4Macros.cmake says
   if (${second_PARAM} STREQUAL "TEST")
which leads to


CMake Warning (dev) at /d/kde/inst/kde4.14/share/apps/cmake/modules/KDE4Macros.cmake:775 (if):
  Policy CMP0064 is not set: Support new TEST if() operator.  Run "cmake
  --help-policy CMP0064" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  TEST will be interpreted as an operator when the policy is set to NEW.
  Since the policy is not set the OLD behavior will be used.

I tried changing that to
   if ("${second_PARAM}" STREQUAL "TEST")
but that doesn't help, the warning is still there.

How much more quoting can I do? :-)


Can't set the policy, this is from a file shared between many many projects.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the Kde-buildsystem mailing list