[LLVMdev] CMake 3.2 warning in Compiler-RT

Stefanus Du Toit sdt at google.com
Fri May 15 11:01:49 PDT 2015


On Fri, 15 May 2015 at 12:39 Renato Golin <renato.golin at linaro.org> wrote:

> On 15 May 2015 at 17:04, Stefanus Du Toit <sdt at google.com> wrote:
> > The fix should be as simple as changing "if (NOT "${varname}")" to "if
> (NOT
> > ${varname})" on that line.
>
> Would that work on CMake 2.8, too? That's our current lowest version.
>

Yes, that should work fine on CMake 2.8. There's even an example of doing
exactly what is done here (without the quotes) in the CMake 2.8 docs:

http://www.cmake.org/cmake/help/v2.8.12/cmake.html#command:if

(towards the end of that section, starting with "The if command was written
very early")

Stefanus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150515/d6ab211b/attachment.html>


More information about the llvm-dev mailing list