forked from OSchip/llvm-project
[libc++] Use generator expression to simplify the CMake code
A comment was left for when we would require CMake >= 3, which we do now. I expect this should be a NFC. Differential Revision: https://reviews.llvm.org/D97341
This commit is contained in:
parent
5601305fb3
commit
5034d7115d
|
@ -379,9 +379,7 @@ endif()
|
|||
# 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_SHARED AND LIBCXX_ENABLE_ABI_LINKER_SCRIPT)
|
||||
# Replace the libc++ filename with $<TARGET_LINKER_FILE:cxx>
|
||||
# after we required CMake 3.0.
|
||||
install(FILES "${LIBCXX_LIBRARY_DIR}/libc++${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
install(FILES "$<TARGET_LINKER_FILE:cxx_shared>"
|
||||
DESTINATION ${LIBCXX_INSTALL_PREFIX}${LIBCXX_INSTALL_LIBRARY_DIR}
|
||||
COMPONENT libcxx)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue