[PATCH] D44078: [Polly][CMake] Fix lit setup for building the in the mono repo

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 06:45:34 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL326702: [Polly][CMake] Fix lit setup for building the in the mono repo (authored by pfaffe, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D44078

Files:
  polly/trunk/test/CMakeLists.txt


Index: polly/trunk/test/CMakeLists.txt
===================================================================
--- polly/trunk/test/CMakeLists.txt
+++ polly/trunk/test/CMakeLists.txt
@@ -47,7 +47,11 @@
 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44078.136989.patch
Type: text/x-patch
Size: 633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180305/5ccf5ca8/attachment.bin>


More information about the llvm-commits mailing list