Blame SOURCES/0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch

3c5161
From f2c9c1c9cda831a4305e2dc8899d630ed727353a Mon Sep 17 00:00:00 2001
d97994
From: Tom Stellard <tstellar@redhat.com>
d97994
Date: Tue, 16 May 2017 11:52:19 -0400
3c5161
Subject: [PATCH] [PATCH][openmp] CMake: Make LIBOMP_HEADERS_INSTALL_PATH a
3c5161
 cache variable when bulding standalone
d97994
d97994
This way it can be overriden on the command line.
d97994
---
3c5161
 openmp/runtime/src/CMakeLists.txt | 2 +-
3c5161
 1 file changed, 1 insertion(+), 1 deletion(-)
d97994
3c5161
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
3c5161
index 822f9ca..583a3c3 100644
3c5161
--- a/openmp/runtime/src/CMakeLists.txt
3c5161
+++ b/openmp/runtime/src/CMakeLists.txt
3c5161
@@ -305,7 +305,7 @@ add_dependencies(libomp-micro-tests libomp-test-deps)
d97994
 # We want to install libomp in DESTDIR/CMAKE_INSTALL_PREFIX/lib
d97994
 # We want to install headers in DESTDIR/CMAKE_INSTALL_PREFIX/include
3c5161
 if(${OPENMP_STANDALONE_BUILD})
d97994
-  set(LIBOMP_HEADERS_INSTALL_PATH include)
d97994
+  set(LIBOMP_HEADERS_INSTALL_PATH include CACHE PATH "Install path for OpenMP headers")
d97994
 else()
d97994
   string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION ${PACKAGE_VERSION})
d97994
   set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include")
d97994
-- 
d97994
1.8.3.1
d97994