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

John Ericson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 13 21:27:02 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}
----------------
Ericson2314 wrote:
> 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.
Not sure where @beanz is at, and this was a just a small addition to the approved part, so I am just going go forward with it.


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