[polly] r295671 - [Cmake] Install the isl headers into the install tree.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 08:57:14 PST 2017


Author: meinersbur
Date: Mon Feb 20 10:57:14 2017
New Revision: 295671

URL: http://llvm.org/viewvc/llvm-project?rev=295671&view=rev
Log:
[Cmake] Install the isl headers into the install tree.

isl headers are currently missing in a Polly installation. Because the
Polly headers depend on those, code can't be compiled against an
installed Polly.

This patch installs the isl headers. I left a TODO, as optionally it
should be possible to use a system version of isl instead of the one
shipped with Polly.

When compiling, clients of the installation need to add
-I${PREFIX}/include/polly/ to there include path right now, because
there currently is no way to export this path automatically.

Contributed-by: Philip Pfaffe <philip.pfaffe at gmail.com>

Differential Revision: https://reviews.llvm.org/D29931

Modified:
    polly/trunk/lib/External/CMakeLists.txt

Modified: polly/trunk/lib/External/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/CMakeLists.txt?rev=295671&r1=295670&r2=295671&view=diff
==============================================================================
--- polly/trunk/lib/External/CMakeLists.txt (original)
+++ polly/trunk/lib/External/CMakeLists.txt Mon Feb 20 10:57:14 2017
@@ -262,6 +262,20 @@ add_polly_library(PollyISL
   ${ISL_FILES}
 )
 
+
+# TODO: optionally use system isl instead
+if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
+  install(DIRECTORY
+    ${ISL_SOURCE_DIR}/include/
+    ${ISL_BINARY_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
 )




More information about the llvm-commits mailing list