llvm/mlir/cmake/modules
John Ericson ac0d1d5c7b [cmake] Support custom package install paths
Firstly, we we make an additional GNUInstallDirs-style variable. With
NixOS, for example, this is crucial as we want those to go in
`${dev}/lib/cmake` not `${out}/lib/cmake` as that would a cmake subdir
of the "regular" libdir, which is installed even when no one needs to do
any development.

Secondly, we make *Config.cmake robust to absolute package install
paths. We for NixOS will in fact be passing them absolute paths to make
the `${dev}` vs `${out}` distinction mentioned above, and the
GNUInstallDirs-style variables are suposed to support absolute paths in
general so it's good practice besides the NixOS use-case.

Thirdly, we make `${project}_INSTALL_PACKAGE_DIR` CACHE PATHs like other
install dirs are.

Reviewed By: sebastian-ne

Differential Revision: https://reviews.llvm.org/D117973
2022-07-25 21:02:53 +00:00
..
AddMLIR.cmake [cmake] Don't export LLVM_TOOLS_INSTALL_DIR anymore 2022-07-21 19:04:00 +00:00
AddMLIRPython.cmake Restore Python install behavior from before D128230. 2022-07-09 19:22:51 -07:00
CMakeLists.txt [cmake] Support custom package install paths 2022-07-25 21:02:53 +00:00
MLIRConfig.cmake.in
MLIRDetectPythonEnv.cmake [mlir] Update Python CMake version requirement. 2022-07-25 11:29:33 -06:00