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

732d93
From f2c9c1c9cda831a4305e2dc8899d630ed727353a Mon Sep 17 00:00:00 2001
d30294
From: Tom Stellard <tstellar@redhat.com>
d30294
Date: Tue, 16 May 2017 11:52:19 -0400
732d93
Subject: [PATCH] [PATCH][openmp] CMake: Make LIBOMP_HEADERS_INSTALL_PATH a
732d93
 cache variable when bulding standalone
d30294
d30294
This way it can be overriden on the command line.
d30294
---
732d93
 openmp/runtime/src/CMakeLists.txt | 2 +-
732d93
 1 file changed, 1 insertion(+), 1 deletion(-)
d30294
732d93
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
732d93
index 822f9ca..583a3c3 100644
732d93
--- a/openmp/runtime/src/CMakeLists.txt
732d93
+++ b/openmp/runtime/src/CMakeLists.txt
e10828
@@ -346,7 +346,7 @@ add_dependencies(libomp-micro-tests libomp-test-deps)
d30294
 # We want to install libomp in DESTDIR/CMAKE_INSTALL_PREFIX/lib
d30294
 # We want to install headers in DESTDIR/CMAKE_INSTALL_PREFIX/include
732d93
 if(${OPENMP_STANDALONE_BUILD})
e10828
-  set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}")
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