[Openmp-commits] [PATCH] D39920: [libomptarget] Build all libraries in libomptarget/

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 10 13:06:50 PST 2017


Hahnfeld created this revision.
Herald added a subscriber: mgorny.

In standalone build, plugins where previously built in their
subdirectory in plugins/ and tests couldn't find them.


https://reviews.llvm.org/D39920

Files:
  libomptarget/CMakeLists.txt


Index: libomptarget/CMakeLists.txt
===================================================================
--- libomptarget/CMakeLists.txt
+++ libomptarget/CMakeLists.txt
@@ -35,6 +35,9 @@
   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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39920.122510.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20171110/58895b25/attachment.bin>


More information about the Openmp-commits mailing list