[PATCH] D109570: [CMake] Use NOT instead of STREQUAL

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 10 01:32:54 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbaf1444929f4: [CMake] Use NOT instead of STREQUAL (authored by phosek).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109570/new/

https://reviews.llvm.org/D109570

Files:
  runtimes/CMakeLists.txt


Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -61,7 +61,7 @@
 # If building standalone by pointing CMake at this runtimes directory,
 # LLVM_BINARY_DIR isn't set, find_package(LLVM) will fail and these
 # intermediate paths are unset.
-if (LLVM_BINARY_DIR STREQUAL "")
+if (NOT LLVM_BINARY_DIR)
   set(LLVM_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
 endif()
 if (NOT LLVM_FOUND)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109570.371820.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210910/689162e9/attachment.bin>


More information about the llvm-commits mailing list