CMake: move lto.h install to tools/lto/CMakeLists.txt

It looked misplaced in the main CMakeLists.txt file.

llvm-svn: 189230
This commit is contained in:
Hans Wennborg 2013-08-26 16:54:12 +00:00
parent f7fd8102dd
commit 83dfd507dc
2 changed files with 5 additions and 5 deletions

View 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})

View 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()