[PATCH] D116555: [Polly][CMake] Make PollyConfig.cmake relocatable like other projects'

John Ericson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 7 22:01:55 PST 2022


Ericson2314 added inline comments.


================
Comment at: polly/cmake/CMakeLists.txt:101-123
+# Set locations for imported targets. The path is constructed to be relative to
+# the config file.
+#
+# Include the config code of PollyConfig.cmake to define POLLY_INSTALL_PREFIX
+# anew in case the export file is included alone rather than from that file.
+set(POLLY_EXPORTS
+"${POLLY_CONFIG_CODE}
----------------
This is the new bit, replacing the wold way of doing relative exports.

Someday, it would be nice to replace this the usual LLVMDistributionSupport methods, but that is a bigger change best left for later.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116555/new/

https://reviews.llvm.org/D116555



More information about the llvm-commits mailing list