r373936 - [clang] [cmake] Support LLVM_DISTRIBUTION_COMPONENTS in stand-alone build
Michal Gorny via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 7 11:14:56 PDT 2019
Author: mgorny
Date: Mon Oct 7 11:14:56 2019
New Revision: 373936
URL: http://llvm.org/viewvc/llvm-project?rev=373936&view=rev
Log:
[clang] [cmake] Support LLVM_DISTRIBUTION_COMPONENTS in stand-alone build
Differential Revision: https://reviews.llvm.org/D68412
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=373936&r1=373935&r2=373936&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Mon Oct 7 11:14:56 2019
@@ -114,6 +114,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
include(TableGen)
include(HandleLLVMOptions)
include(VersionFromVCS)
+ include(LLVMDistributionSupport)
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
@@ -858,6 +859,10 @@ if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUT
endif()
add_subdirectory(utils/hmaptool)
+if(CLANG_BUILT_STANDALONE)
+ llvm_distribution_add_targets()
+endif()
+
configure_file(
${CLANG_SOURCE_DIR}/include/clang/Config/config.h.cmake
${CLANG_BINARY_DIR}/include/clang/Config/config.h)
More information about the cfe-commits
mailing list