[mlir][cmake] Use `GNUInstallDirs` to support custom installation dirs
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Tue, 18 Jan 2022 07:03:10 +0000 (07:03 +0000)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Wed, 19 Jan 2022 17:11:04 +0000 (17:11 +0000)
commit5ad96992ef909e6b99d8c693a285f06c9fc645fe
tree2564f8cf2806f12aacaf14c161fee8c000479bb7
parent89a92fb3ba668d0a4ec25c1268c31d9b35ab17e7
[mlir][cmake] Use `GNUInstallDirs` to support custom installation dirs

I am breaking apart D99484 so the cause of build failures is easier to
understand.

Differential Revision: https://reviews.llvm.org/D117540
mlir/CMakeLists.txt
mlir/cmake/modules/AddMLIR.cmake
mlir/cmake/modules/CMakeLists.txt