From f13bbe792f76bf2ed1178795d19d10e378393d0b Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 10 Feb 2014 20:44:57 +0000 Subject: [PATCH] cmake: Do not export targets when installing toolchain only Patch by Brad King! llvm-svn: 201111 --- cmake/modules/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt index 6038cf3355a..8ab5ca27f5d 100644 --- a/cmake/modules/CMakeLists.txt +++ b/cmake/modules/CMakeLists.txt @@ -73,9 +73,9 @@ configure_file( ${llvm_cmake_builddir}/LLVMConfigVersion.cmake @ONLY) -install(EXPORT LLVMExports DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}) - if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) + install(EXPORT LLVMExports DESTINATION ${LLVM_INSTALL_PACKAGE_DIR}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/LLVMConfig.cmake ${llvm_cmake_builddir}/LLVMConfigVersion.cmake