diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2022-08-25 11:13:46 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2022-08-25 11:13:46 -0400 |
commit | 34fe6ddce11e4e0e31a96669ab5f200e5fb8a747 (patch) | |
tree | 0fa4c894cd7c1719c4edee013eb812fbaa22033e /lld/cmake | |
parent | f7bbe099c996aa38ceee701eea9bd81cfe6066e3 (diff) | |
download | llvm-34fe6ddce11e4e0e31a96669ab5f200e5fb8a747.zip llvm-34fe6ddce11e4e0e31a96669ab5f200e5fb8a747.tar.gz llvm-34fe6ddce11e4e0e31a96669ab5f200e5fb8a747.tar.bz2 |
Revert "[CMake] Avoid `LLVM_BINARY_DIR` when other more specific variable are better-suited"
This reverts commit ad8c34bc3089d847a09bb740f7a58c96073e0959.
Diffstat (limited to 'lld/cmake')
-rw-r--r-- | lld/cmake/modules/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/cmake/modules/CMakeLists.txt b/lld/cmake/modules/CMakeLists.txt index 61e7a1f..57195bc 100644 --- a/lld/cmake/modules/CMakeLists.txt +++ b/lld/cmake/modules/CMakeLists.txt @@ -14,7 +14,7 @@ set(lld_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/lld") set(LLVM_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/llvm" CACHE STRING "Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')") # CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below. -set(llvm_cmake_builddir "${LLVM_LIBRARY_DIR}/cmake/llvm") +set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm") get_property(LLD_EXPORTS GLOBAL PROPERTY LLD_EXPORTS) export(TARGETS ${LLD_EXPORTS} FILE ${lld_cmake_builddir}/LLDTargets.cmake) |