From 65b2b03fa4ca6b15cce8b871e40d7bc9139ab9f4 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sun, 30 Nov 2014 12:45:44 +0000 Subject: [PATCH] cmake: Add polly libraries to LLVMExports This fixes LINK_POLLY_INTO_TOOLS=ON builds, which previously failed with: CMake Error: install(EXPORT "LLVMExports" ...) includes target "opt" which requires target "Polly" that is not in the export set. CMake Error: install(EXPORT "LLVMExports" ...) includes target "bugpoint" which requires target "Polly" that is not in the export set. llvm-svn: 222977 --- polly/cmake/polly_macros.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polly/cmake/polly_macros.cmake b/polly/cmake/polly_macros.cmake index da65dcd..386eb64 100644 --- a/polly/cmake/polly_macros.cmake +++ b/polly/cmake/polly_macros.cmake @@ -45,8 +45,10 @@ macro(add_polly_library name) set_target_properties(${name} PROPERTIES COMPILE_FLAGS ${cflag}) endif(MSVC) install(TARGETS ${name} + EXPORT LLVMExports LIBRARY DESTINATION lib ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name}) endmacro(add_polly_library) macro(add_polly_loadable_module name) -- 2.7.4