<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div>On Dec 21, 2015, at 18:13, David Faure <<a href="mailto:faure@kde.org">faure@kde.org</a>> wrote:<br><br></div><blockquote type="cite"><div><span>KDE4Macros.cmake says</span><br><span> if (${second_PARAM} STREQUAL "TEST")</span><br><span>which leads to</span><br><span></span><br><span></span><br><span>CMake Warning (dev) at /d/kde/inst/kde4.14/share/apps/cmake/modules/KDE4Macros.cmake:775 (if):</span><br><span> Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake</span><br><span> --help-policy CMP0064" for policy details. Use the cmake_policy command to</span><br><span> set the policy and suppress this warning.</span><br><span></span><br><span> TEST will be interpreted as an operator when the policy is set to NEW.</span><br><span> Since the policy is not set the OLD behavior will be used.</span><br><span></span><br><span>I tried changing that to</span><br><span> if ("${second_PARAM}" STREQUAL "TEST")</span><br><span>but that doesn't help, the warning is still there.</span><br><span></span><br><span>How much more quoting can I do? :-)</span><br><span></span><br><span></span><br><span>Can't set the policy, this is from a file shared between many many projects.</span><br></div></blockquote><br><div>That is incredibly stupid *throws brick at CMake*.</div><div><br></div><div>You could try the trick shell scripts (like autoconf-generated configure scripts) use to cope with empty strings:</div><div><br></div><div><div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">if ("x${second_PARAM}" STREQUAL "xTEST")</span></font></div></div></div></body></html>