[libunwind] r362065 - [CMake] Use find_package(LLVM) instead of LLVMConfig

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 00:34:39 PDT 2019


Author: phosek
Date: Thu May 30 00:34:39 2019
New Revision: 362065

URL: http://llvm.org/viewvc/llvm-project?rev=362065&view=rev
Log:
[CMake] Use find_package(LLVM) instead of LLVMConfig

This addresses an issues introduced in r362047.

Differential Revision: https://reviews.llvm.org/D62640

Modified:
    libunwind/trunk/CMakeLists.txt

Modified: libunwind/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/CMakeLists.txt?rev=362065&r1=362064&r2=362065&view=diff
==============================================================================
--- libunwind/trunk/CMakeLists.txt (original)
+++ libunwind/trunk/CMakeLists.txt Thu May 30 00:34:39 2019
@@ -15,7 +15,7 @@ set(CMAKE_MODULE_PATH
   ${CMAKE_MODULE_PATH}
   )
 
-if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR LIBUNWIND_STANDALONE_BUILD)
   project(libunwind)
 
   # Rely on llvm-config.




More information about the cfe-commits mailing list