summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/test/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/polly/test/CMakeLists.txt b/polly/test/CMakeLists.txt
index 0cc33c3262c..cf6efd12beb 100644
--- a/polly/test/CMakeLists.txt
+++ b/polly/test/CMakeLists.txt
@@ -47,7 +47,11 @@ endif ()
set(LLVM_BINARY_DIR "${LLVM_BINARY_DIR}")
set(LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR}")
set(LLVM_LIBS_DIR "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}")
-set(POLLY_LIB_DIR "${POLLY_BINARY_DIR}/lib")
+if (CMAKE_LIBRARY_OUTPUT_DIRECTORY)
+ set(POLLY_LIB_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
+else()
+ set(POLLY_LIB_DIR "${POLLY_BINARY_DIR}/lib")
+endif()
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
OpenPOWER on IntegriCloud