summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-10-22 21:24:01 +0000
committerEric Fiselier <eric@efcs.ca>2015-10-22 21:24:01 +0000
commite2dd2fd7c733729047329b8c81e40b8e3da64df8 (patch)
treee3547b8283fdc26ad197213333287ccb5220a89c /libcxx
parent35e46cdd04a4aecc2dd06f092ec23cf116beadad (diff)
downloadbcm5719-llvm-e2dd2fd7c733729047329b8c81e40b8e3da64df8.tar.gz
bcm5719-llvm-e2dd2fd7c733729047329b8c81e40b8e3da64df8.zip
Dont required CMake 3 to install a linker script
llvm-svn: 251065
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/lib/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index ec3085b4879..cdba053929c 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -154,7 +154,6 @@ if (LIBCXX_ENABLE_ABI_LINKER_SCRIPT)
)
endif()
-
if (LIBCXX_INSTALL_LIBRARY)
install(TARGETS cxx
LIBRARY DESTINATION lib${LIBCXX_LIBDIR_SUFFIX} COMPONENT libcxx
@@ -163,7 +162,9 @@ if (LIBCXX_INSTALL_LIBRARY)
# NOTE: This install command must go after the cxx install command otherwise
# it will not be executed after the library symlinks are installed.
if (LIBCXX_ENABLE_ABI_LINKER_SCRIPT)
- install(FILES "$<TARGET_LINKER_FILE:cxx>"
+ # Replace the libc++ filename with $<TARGET_LINKER_FILE:cxx>
+ # after we required CMake 3.0.
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libc++${CMAKE_SHARED_LIBRARY_SUFFIX}"
DESTINATION lib${LIBCXX_LIBDIR_SUFFIX}
COMPONENT libcxx)
endif()
OpenPOWER on IntegriCloud