[PATCH] D32736: [libcxx][CMake] Set library dir when built under runtimes/

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 3 23:16:03 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL302117: [libcxx][CMake] Set library dir when built under runtimes/ (authored by Hahnfeld).

Changed prior to commit:
  https://reviews.llvm.org/D32736?vs=97403&id=97776#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D32736

Files:
  libcxx/trunk/CMakeLists.txt


Index: libcxx/trunk/CMakeLists.txt
===================================================================
--- libcxx/trunk/CMakeLists.txt
+++ libcxx/trunk/CMakeLists.txt
@@ -344,7 +344,11 @@
 set(LIBCXX_SOURCE_DIR  ${CMAKE_CURRENT_SOURCE_DIR})
 set(LIBCXX_BINARY_DIR  ${CMAKE_CURRENT_BINARY_DIR})
 set(LIBCXX_BINARY_INCLUDE_DIR "${LIBCXX_BINARY_DIR}/include/c++build")
-set(LIBCXX_LIBRARY_DIR ${CMAKE_BINARY_DIR}/lib${LIBCXX_LIBDIR_SUFFIX})
+if (LLVM_LIBRARY_OUTPUT_INTDIR)
+  set(LIBCXX_LIBRARY_DIR ${LLVM_LIBRARY_OUTPUT_INTDIR})
+else()
+  set(LIBCXX_LIBRARY_DIR ${CMAKE_BINARY_DIR}/lib${LIBCXX_LIBDIR_SUFFIX})
+endif()
 file(MAKE_DIRECTORY "${LIBCXX_BINARY_INCLUDE_DIR}")
 
 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LIBCXX_LIBRARY_DIR})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32736.97776.patch
Type: text/x-patch
Size: 733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170504/d43fea0c/attachment.bin>


More information about the cfe-commits mailing list