Blame SOURCES/0001-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-a-cache-varia.patch

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