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

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