2018-01-26 00:17:01 +00:00
|
|
|
From e167844878416cd7e7ab9eee58f1ce56650b56f1 Mon Sep 17 00:00:00 2001
|
2017-11-20 18:07:34 +00:00
|
|
|
From: Tom Stellard <tstellar@redhat.com>
|
|
|
|
Date: Tue, 16 May 2017 11:52:19 -0400
|
|
|
|
Subject: [PATCH] CMake: Make LIBOMP_HEADERS_INSTALL_PATH a cache variable when
|
|
|
|
bulding standalone
|
|
|
|
|
|
|
|
This way it can be overriden on the command line.
|
|
|
|
---
|
2018-01-26 00:17:01 +00:00
|
|
|
runtime/src/CMakeLists.txt | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
2017-11-20 18:07:34 +00:00
|
|
|
|
|
|
|
diff --git a/runtime/src/CMakeLists.txt b/runtime/src/CMakeLists.txt
|
2018-01-26 00:17:01 +00:00
|
|
|
index 8545fe2..9312721 100644
|
2017-11-20 18:07:34 +00:00
|
|
|
--- a/runtime/src/CMakeLists.txt
|
|
|
|
+++ b/runtime/src/CMakeLists.txt
|
2018-01-26 00:17:01 +00:00
|
|
|
@@ -282,7 +282,7 @@ add_dependencies(libomp-micro-tests libomp-test-deps)
|
2017-11-20 18:07:34 +00:00
|
|
|
# We want to install libomp in DESTDIR/CMAKE_INSTALL_PREFIX/lib
|
|
|
|
# We want to install headers in DESTDIR/CMAKE_INSTALL_PREFIX/include
|
2018-01-26 00:17:01 +00:00
|
|
|
if(${OPENMP_STANDALONE_BUILD})
|
2017-11-20 18:07:34 +00:00
|
|
|
- set(LIBOMP_HEADERS_INSTALL_PATH include)
|
|
|
|
+ set(LIBOMP_HEADERS_INSTALL_PATH include CACHE PATH "Install path for OpenMP headers")
|
|
|
|
else()
|
|
|
|
string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION ${PACKAGE_VERSION})
|
2018-01-26 00:17:01 +00:00
|
|
|
set(LIBOMP_HEADERS_INSTALL_PATH lib${OPENMP_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
|
2017-11-20 18:07:34 +00:00
|
|
|
--
|
|
|
|
1.8.3.1
|
|
|
|
|