[llvm-branch-commits] [openmp] ba26d24 - [PATCH] CMake: Make LIBOMP_HEADERS_INSTALL_PATH a cache variable when bulding standalone
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 3 01:15:59 PDT 2022
Author: Tom Stellard
Date: 2022-05-03T10:10:13+02:00
New Revision: ba26d248aa9280016d34259413df9c37b76f7819
URL: https://github.com/llvm/llvm-project/commit/ba26d248aa9280016d34259413df9c37b76f7819
DIFF: https://github.com/llvm/llvm-project/commit/ba26d248aa9280016d34259413df9c37b76f7819.diff
LOG: [PATCH] CMake: Make LIBOMP_HEADERS_INSTALL_PATH a cache variable when bulding standalone
This way it can be overriden on the command line.
Added:
Modified:
openmp/runtime/src/CMakeLists.txt
Removed:
################################################################################
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
index 4068a5862b4a3..6125f8dca7673 100644
--- a/openmp/runtime/src/CMakeLists.txt
+++ b/openmp/runtime/src/CMakeLists.txt
@@ -350,7 +350,7 @@ add_dependencies(libomp-micro-tests libomp-test-deps)
# We want to install libomp in DESTDIR/CMAKE_INSTALL_PREFIX/lib
# We want to install headers in DESTDIR/CMAKE_INSTALL_PREFIX/include
if(${OPENMP_STANDALONE_BUILD})
- set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}")
+ set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}" CACHE PATH "Install path for OpenMP headers")
else()
string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION ${PACKAGE_VERSION})
set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include")
More information about the llvm-branch-commits
mailing list