diff options
author | Tobias Grosser <tobias@grosser.es> | 2014-11-30 12:45:44 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2014-11-30 12:45:44 +0000 |
commit | 65b2b03fa4ca6b15cce8b871e40d7bc9139ab9f4 (patch) | |
tree | c7e5449cbeca0f82618b82cb5334390d01b0f34f /polly/cmake | |
parent | 378107daa4123839dd777df2af18544e5d4ee371 (diff) | |
download | bcm5719-llvm-65b2b03fa4ca6b15cce8b871e40d7bc9139ab9f4.tar.gz bcm5719-llvm-65b2b03fa4ca6b15cce8b871e40d7bc9139ab9f4.zip |
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
Diffstat (limited to 'polly/cmake')
-rw-r--r-- | polly/cmake/polly_macros.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/cmake/polly_macros.cmake b/polly/cmake/polly_macros.cmake index da65dcdf6b2..386eb64efc0 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) |