[Openmp-commits] [PATCH] D130545: [cmake] Slight fix ups to make robust to the full range of GNUInstallDirs
Sebastian Neubauer via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 26 02:54:05 PDT 2022
sebastian-ne accepted this revision.
sebastian-ne added a comment.
This revision is now accepted and ready to land.
Looks good to me
================
Comment at: openmp/CMakeLists.txt:3
-# Add cmake directory to search for custom cmake functions.
-set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
+set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
+
----------------
There are some places that surround this by an `if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)` (e.g. lldb/cmake/modules/LLDBStandalone.cmake, clang/CMakeLists.txt, polly/CMakeLists.txt) although other places don’t (lld/CMakeLists.txt, libunwind/CMakeLists.txt, etc.), so both seem to be fine.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130545/new/
https://reviews.llvm.org/D130545
More information about the Openmp-commits
mailing list