summaryrefslogtreecommitdiffstats
path: root/openmp
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-11 13:59:45 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-11 13:59:45 +0000
commit3acaa701adbb0820d968ffcd4886e443f9fe9ca3 (patch)
treedc2c4840c624f43575c06ca414f6743fba5cd89b /openmp
parent32ee3342d95fd73e725a322a0bf9e105d2176883 (diff)
downloadbcm5719-llvm-3acaa701adbb0820d968ffcd4886e443f9fe9ca3.tar.gz
bcm5719-llvm-3acaa701adbb0820d968ffcd4886e443f9fe9ca3.zip
[libomptarget] Build all libraries in libomptarget/
In standalone build, plugins where previously built in their subdirectory in plugins/ and tests couldn't find them. Differential Revision: https://reviews.llvm.org/D39920 llvm-svn: 317979
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libomptarget/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/openmp/libomptarget/CMakeLists.txt b/openmp/libomptarget/CMakeLists.txt
index c5e0a6c6ece..73b2d2eef2a 100644
--- a/openmp/libomptarget/CMakeLists.txt
+++ b/openmp/libomptarget/CMakeLists.txt
@@ -35,6 +35,9 @@ if(${LIBOMPTARGET_STANDALONE_BUILD})
endif()
set(LIBOMPTARGET_LIBDIR_SUFFIX "" CACHE STRING
"suffix of lib installation directory, e.g. 64 => lib64")
+
+ # Build all libraries into a common place so that tests can find them.
+ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
else()
set(LIBOMPTARGET_ENABLE_WERROR ${LLVM_ENABLE_WERROR})
# If building in tree, we honor the same install suffix LLVM uses.
OpenPOWER on IntegriCloud