Fix misinterpretation of CMake rule found by a CMake warning (related to CMP0054).
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 26 Sep 2014 21:33:05 +0000 (21:33 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 26 Sep 2014 21:33:05 +0000 (21:33 +0000)
commitdadfd4f0a74953aee57194e5930a3d4476195ae8
tree93b3e1360054509c6bd2600918ac1c97d9e76034
parent0a31a52b913f350beefe8e2f5e03a36d8789122f
Fix misinterpretation of CMake rule found by a CMake warning (related to CMP0054).

lldb sets the variable SHARED_LIBRARY to 1, which breaks this conditional,
because older versions of CMake interpret

  if ("${t}" STREQUAL "SHARED_LIBRARY")

as meaning

  if ("${t}" STREQUAL "1")

in this case. Change the conditional so it does the right thing with both old
and new CMakes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218542 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/LLVM-Config.cmake