cmake: Do not export targets when installing toolchain only

Patch by Brad King!

llvm-svn: 201111
This commit is contained in:
Reid Kleckner 2014-02-10 20:44:57 +00:00
parent b1c77f900f
commit f13bbe792f

View File

@ -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