Index: openmp/trunk/libomptarget/CMakeLists.txt =================================================================== --- openmp/trunk/libomptarget/CMakeLists.txt +++ openmp/trunk/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.