From 05c479491c1d3236cae4eccaa3fcd2794598522c Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Tue, 30 Jun 2020 14:11:28 +0200 Subject: [PATCH] Make it possible for client code to consume CLANG_LINK_CLANG_DYLIB If a client code wants to consume clang libraries, it needs to know CLANG_LINK_CLANG_DYLIB value in order to decide whether to use the DYLIB or individual components. Differential Revision: https://reviews.llvm.org/D82291 --- clang/cmake/modules/ClangConfig.cmake.in | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/cmake/modules/ClangConfig.cmake.in b/clang/cmake/modules/ClangConfig.cmake.in index a5a7eae..c5ce562 100644 --- a/clang/cmake/modules/ClangConfig.cmake.in +++ b/clang/cmake/modules/ClangConfig.cmake.in @@ -8,6 +8,7 @@ find_package(LLVM REQUIRED CONFIG set(CLANG_EXPORTED_TARGETS "@CLANG_EXPORTS@") set(CLANG_CMAKE_DIR "@CLANG_CONFIG_CMAKE_DIR@") set(CLANG_INCLUDE_DIRS "@CLANG_CONFIG_INCLUDE_DIRS@") +set(CLANG_LINK_CLANG_DYLIB "@CLANG_LINK_CLANG_DYLIB@") # Provide all our library targets to users. include("@CLANG_CONFIG_EXPORTS_FILE@") -- 2.7.4