Use correct CMake variable for the libname

llvm-svn: 250329
This commit is contained in:
Eric Fiselier 2015-10-14 21:20:28 +00:00
parent 80edbbbdf8
commit 27dec39996
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ set_target_properties(cxx
if (LIBCXX_ENABLE_ABI_LINKER_SCRIPT)
# Get the name of the ABI library and handle the case where CXXABI_LIBNAME
# is a target name and not a library. Ex cxxabi_shared.
set(SCRIPT_ABI_LIBNAME "${CXXABI_LIBNAME}")
set(SCRIPT_ABI_LIBNAME "${LIBCXX_CXX_ABI_LIBRARY}")
if (SCRIPT_ABI_LIBNAME STREQUAL "cxxabi_shared")
set("${SCRIPT_ABI_LIBNAME}" "c++abi")
endif()