[PATCH] D21543: [polly] Respect LLVM_INSTALL_TOOLCHAIN_ONLY
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 21 11:20:52 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL273292: Respect LLVM_INSTALL_TOOLCHAIN_ONLY. (authored by eugenezelenko).
Changed prior to commit:
http://reviews.llvm.org/D21543?vs=61330&id=61409#toc
Repository:
rL LLVM
http://reviews.llvm.org/D21543
Files:
polly/trunk/CMakeLists.txt
polly/trunk/cmake/polly_macros.cmake
Index: polly/trunk/cmake/polly_macros.cmake
===================================================================
--- polly/trunk/cmake/polly_macros.cmake
+++ polly/trunk/cmake/polly_macros.cmake
@@ -43,10 +43,12 @@
if( LLVM_LINK_COMPONENTS )
llvm_config(${name} ${LLVM_LINK_COMPONENTS})
endif( LLVM_LINK_COMPONENTS )
- install(TARGETS ${name}
- EXPORT LLVMExports
- LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
- ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
+ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LLVMPolly")
+ install(TARGETS ${name}
+ EXPORT LLVMExports
+ LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
+ ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
+ endif()
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
endmacro(add_polly_library)
Index: polly/trunk/CMakeLists.txt
===================================================================
--- polly/trunk/CMakeLists.txt
+++ polly/trunk/CMakeLists.txt
@@ -137,20 +137,22 @@
${CMAKE_CURRENT_BINARY_DIR}/include
)
-install(DIRECTORY include/
- DESTINATION include
- FILES_MATCHING
- PATTERN "*.h"
- PATTERN ".svn" EXCLUDE
- )
-
-install(DIRECTORY ${POLLY_BINARY_DIR}/include/
- DESTINATION include
- FILES_MATCHING
- PATTERN "*.h"
- PATTERN "CMakeFiles" EXCLUDE
- PATTERN ".svn" EXCLUDE
- )
+if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
+ install(DIRECTORY include/
+ DESTINATION include
+ FILES_MATCHING
+ PATTERN "*.h"
+ PATTERN ".svn" EXCLUDE
+ )
+
+ install(DIRECTORY ${POLLY_BINARY_DIR}/include/
+ DESTINATION include
+ FILES_MATCHING
+ PATTERN "*.h"
+ PATTERN "CMakeFiles" EXCLUDE
+ PATTERN ".svn" EXCLUDE
+ )
+endif()
add_definitions( -D_GNU_SOURCE )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21543.61409.patch
Type: text/x-patch
Size: 1733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160621/42c6bc5a/attachment.bin>
More information about the llvm-commits
mailing list