[polly] r222977 - cmake: Add polly libraries to LLVMExports

Tobias Grosser tobias at grosser.es
Sun Nov 30 04:45:46 PST 2014


Author: grosser
Date: Sun Nov 30 06:45:44 2014
New Revision: 222977

URL: http://llvm.org/viewvc/llvm-project?rev=222977&view=rev
Log:
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.

Modified:
    polly/trunk/cmake/polly_macros.cmake

Modified: polly/trunk/cmake/polly_macros.cmake
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/cmake/polly_macros.cmake?rev=222977&r1=222976&r2=222977&view=diff
==============================================================================
--- polly/trunk/cmake/polly_macros.cmake (original)
+++ polly/trunk/cmake/polly_macros.cmake Sun Nov 30 06:45:44 2014
@@ -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)





More information about the llvm-commits mailing list