summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-29 19:31:43 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-29 19:31:43 +0000
commit3e921d3c52542b3284c4bd0ef29a70511d38c79c (patch)
tree3412f2c49c232d23762474e53ea86e92affd64a7 /openmp/runtime/src
parent85082013e69a22e40f3aa08417f2934974025eab (diff)
downloadbcm5719-llvm-3e921d3c52542b3284c4bd0ef29a70511d38c79c.tar.gz
bcm5719-llvm-3e921d3c52542b3284c4bd0ef29a70511d38c79c.zip
[CMake] Disallow direct configuration
As a first step, this allows us to generalize the detection of standalone builds and make it fully compatible when building in llvm/runtimes/ which automatically sets OPENMP_STANDLONE_BUILD. Differential Revision: https://reviews.llvm.org/D40080 llvm-svn: 319341
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
index c4b56dbe545..cb2b1843a28 100644
--- a/openmp/runtime/src/CMakeLists.txt
+++ b/openmp/runtime/src/CMakeLists.txt
@@ -282,7 +282,7 @@ add_dependencies(libomp-micro-tests libomp-test-deps)
# Install rules
# We want to install libomp in DESTDIR/CMAKE_INSTALL_PREFIX/lib
# We want to install headers in DESTDIR/CMAKE_INSTALL_PREFIX/include
-if(${LIBOMP_STANDALONE_BUILD})
+if(${OPENMP_STANDALONE_BUILD})
set(LIBOMP_HEADERS_INSTALL_PATH include)
else()
string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION ${PACKAGE_VERSION})
OpenPOWER on IntegriCloud