summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-01-04 05:49:57 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-01-04 05:49:57 +0000
commitf1ae11a4f0708a80fcf15dee55b980ae601ee3df (patch)
treec78a948d5b7a1bf23db8dd3ad992533a3817cc1d
parent99c19ada66d864c55812537149ff9f3d718ffd3b (diff)
downloadbcm5719-llvm-f1ae11a4f0708a80fcf15dee55b980ae601ee3df.tar.gz
bcm5719-llvm-f1ae11a4f0708a80fcf15dee55b980ae601ee3df.zip
build: use the platform dependent library prefix/suffix
Use the cmake variables to get the platform dependent values for the static library prefix and suffix, which can be different from the Unix preference for "lib", ".a" (e.g. Windows uses "", ".lib" respectively). llvm-svn: 290939
-rw-r--r--libcxx/lib/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index 857aaaa3bad..41b9ced3fb9 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -232,7 +232,8 @@ if (LIBCXX_ENABLE_STATIC)
if (TARGET ${LIBCXX_CXX_ABI_LIBRARY})
set(MERGE_ARCHIVES_ABI_TARGET "$<TARGET_LINKER_FILE:${LIBCXX_CXX_ABI_LIBRARY}>")
else()
- set(MERGE_ARCHIVES_ABI_TARGET "lib${LIBCXX_CXX_ABI_LIBRARY}.a")
+ set(MERGE_ARCHIVES_ABI_TARGET
+ "${CMAKE_STATIC_LIBRARY_PREFIX}${LIBCXX_CXX_ABI_LIBRARY}${CMAKE_STATIC_LIBRARY_SUFFIX}")
endif()
add_custom_command(TARGET cxx_static POST_BUILD
COMMAND
OpenPOWER on IntegriCloud