diff options
| author | Stephane Lajoie <dada@typicus.org> | 2017-07-09 19:47:35 -0400 |
|---|---|---|
| committer | Stephane Lajoie <dada@typicus.org> | 2017-07-09 19:47:35 -0400 |
| commit | aea2734ad4c7fbe04bd5f35844aa72e4300d74fb (patch) | |
| tree | 9d7c586f97ed27bf1bfa502862d21aab78219b15 /ports/llvm/install-cmake-modules-to-share.patch | |
| parent | c2f1a2af59d911b79dbe63a23815c4bfa472e2a6 (diff) | |
| download | vcpkg-aea2734ad4c7fbe04bd5f35844aa72e4300d74fb.tar.gz vcpkg-aea2734ad4c7fbe04bd5f35844aa72e4300d74fb.zip | |
Patch CMakeLists to install CMake modules to share/llvm instead of lib/cmake/llvm. This works better than vcpkg_fixup_cmake_targets because other parts of the LLVM build system really want all the variables set correctly. Also set other options to prevent creation of any bin/* instead of removing them after the fact, for the same reason.
Diffstat (limited to 'ports/llvm/install-cmake-modules-to-share.patch')
| -rw-r--r-- | ports/llvm/install-cmake-modules-to-share.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ports/llvm/install-cmake-modules-to-share.patch b/ports/llvm/install-cmake-modules-to-share.patch new file mode 100644 index 000000000..b5193beca --- /dev/null +++ b/ports/llvm/install-cmake-modules-to-share.patch @@ -0,0 +1,10 @@ +diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt +index ac4b0b7..13a271d 100644 +--- a/cmake/modules/CMakeLists.txt ++++ b/cmake/modules/CMakeLists.txt +@@ -1,4 +1,4 @@ +-set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm) ++set(LLVM_INSTALL_PACKAGE_DIR share/llvm) + set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}") + + # First for users who use an installed LLVM, create the LLVMExports.cmake file. |
