[CMake] Assigning the LTO component to lto.h
authorChris Bieneman <beanz@apple.com>
Fri, 26 Feb 2016 21:07:02 +0000 (21:07 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 26 Feb 2016 21:07:02 +0000 (21:07 +0000)
This makes it so lto.h is installed when you run the install-LTO target.

llvm-svn: 262066

llvm/tools/lto/CMakeLists.txt

index 62447eec389bcbc6fe4cc2dcf365c644a49ac5b1..293a12608ae8d4a9726d04273be42b9b32e7ac76 100644 (file)
@@ -18,7 +18,8 @@ set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
 add_llvm_library(LTO SHARED ${SOURCES})
 
 install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
-  DESTINATION include/llvm-c)
+  DESTINATION include/llvm-c
+  COMPONENT LTO)
 
 if (APPLE)
   set(LTO_VERSION ${LLVM_VERSION_MAJOR})