[PATCH] D29931: [Cmake] Install the isl headers into the install tree

Philip Pfaffe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 07:13:23 PST 2017


philip.pfaffe updated this revision to Diff 88372.
philip.pfaffe added a comment.

Addressed the inline comments. It probably isn't worthwhile making the header install prefix configurable. That was actually a remnant from my experiments with exporting a Polly package.

Where in the documentation should the details about using a Polly installation go?


https://reviews.llvm.org/D29931

Files:
  lib/External/CMakeLists.txt


Index: lib/External/CMakeLists.txt
===================================================================
--- lib/External/CMakeLists.txt
+++ lib/External/CMakeLists.txt
@@ -262,6 +262,18 @@
   ${ISL_FILES}
 )
 
+
+# TODO: optionally use system isl instead
+if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
+  install(DIRECTORY ${ISL_SOURCE_DIR}/include/
+    DESTINATION include/polly
+    FILES_MATCHING
+    PATTERN "*.h"
+    PATTERN "CMakeFiles" EXCLUDE
+    PATTERN ".svn" EXCLUDE
+    )
+endif()
+
 add_executable(polly-isl-test
   isl/isl_test.c
 )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29931.88372.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170214/ac22612c/attachment.bin>


More information about the llvm-commits mailing list