CMake: move lto.h install to tools/lto/CMakeLists.txt
authorHans Wennborg <hans@hanshq.net>
Mon, 26 Aug 2013 16:54:12 +0000 (16:54 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 26 Aug 2013 16:54:12 +0000 (16:54 +0000)
It looked misplaced in the main CMakeLists.txt file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189230 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
tools/lto/CMakeLists.txt

index 3e56a3c..8d38fe5 100644 (file)
@@ -500,11 +500,6 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
     )
 endif()
 
-if( NOT WIN32 )
-  install(FILES include/llvm-c/lto.h DESTINATION include/llvm-c)
-endif()
-
-
 set(CPACK_PACKAGE_VENDOR "LLVM")
 set(CPACK_PACKAGE_VERSION_MAJOR ${LLVM_VERSION_MAJOR})
 set(CPACK_PACKAGE_VERSION_MINOR ${LLVM_VERSION_MINOR})
index a004bad..c71aac1 100644 (file)
@@ -26,3 +26,8 @@ if( NOT BUILD_SHARED_LIBS )
   add_llvm_library(${LTO_STATIC_TARGET_NAME} ${SOURCES})
   set_property(TARGET ${LTO_STATIC_TARGET_NAME} PROPERTY OUTPUT_NAME "LTO")
 endif()
+
+if( NOT WIN32 )
+  install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
+          DESTINATION include/llvm-c)
+endif()