[llvm] r201111 - cmake: Do not export targets when installing toolchain only

Reid Kleckner reid at kleckner.net
Mon Feb 10 12:44:57 PST 2014


Author: rnk
Date: Mon Feb 10 14:44:57 2014
New Revision: 201111

URL: http://llvm.org/viewvc/llvm-project?rev=201111&view=rev
Log:
cmake: Do not export targets when installing toolchain only

Patch by Brad King!

Modified:
    llvm/trunk/cmake/modules/CMakeLists.txt

Modified: llvm/trunk/cmake/modules/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/CMakeLists.txt?rev=201111&r1=201110&r2=201111&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/CMakeLists.txt (original)
+++ llvm/trunk/cmake/modules/CMakeLists.txt Mon Feb 10 14:44:57 2014
@@ -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





More information about the llvm-commits mailing list