[PATCH] D30043: [Polly][Cmake] Optionally use a system isl version.

Philip Pfaffe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 06:20:18 PST 2017


philip.pfaffe created this revision.
philip.pfaffe added a project: Polly.
Herald added a subscriber: mgorny.

This patch adds an option to build against a version of libisl already installed on the system. The installation is autodetected using the pkg-config file shipped with isl.

Usually the detection of the library would go into a FindISL.cmake module that creates an imported target. Here, I do this manually and in the root CMakeLists.txt. The main reason for this is that recent versions of FindPkgConfig (shipped with cmake 3.6 and up) will do this on their own. We should just wait until we can bump the minimum required cmake version to that point, or, if that's not going to happen soon, backport FindPkgConfig from cmake trunk (I didn't do this because I'm not up to speed on licensing).

BTW: The minimum required cmake version of Polly is currently 2.8 if built outside the LLVM tree. We should bump that at least to 3.4.3 to match LLVM.


Repository:
  rL LLVM

https://reviews.llvm.org/D30043

Files:
  CMakeLists.txt
  lib/CMakeLists.txt
  lib/External/CMakeLists.txt
  test/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30043.88724.patch
Type: text/x-patch
Size: 7413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170216/5c6ddec0/attachment.bin>


More information about the llvm-commits mailing list