summaryrefslogtreecommitdiffstats
path: root/libcxx/cmake/Modules
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-10-04 05:38:53 +0000
committerPetr Hosek <phosek@chromium.org>2018-10-04 05:38:53 +0000
commit322d88f05ec72af159455e251136a470f968daa3 (patch)
tree0eddb9e9298fa2df155f7ede3f8e18fa720f127f /libcxx/cmake/Modules
parent0e16766b76550b2eb3416f386a62ab76450526c2 (diff)
downloadbcm5719-llvm-322d88f05ec72af159455e251136a470f968daa3.tar.gz
bcm5719-llvm-322d88f05ec72af159455e251136a470f968daa3.zip
[CMake] Use just basename when copying C++ ABI headers
This avoids duplicate directories when the filename includes path. Fixes PR39145 Differential Revision: https://reviews.llvm.org/D52762 llvm-svn: 343753
Diffstat (limited to 'libcxx/cmake/Modules')
-rw-r--r--libcxx/cmake/Modules/HandleLibCXXABI.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/cmake/Modules/HandleLibCXXABI.cmake b/libcxx/cmake/Modules/HandleLibCXXABI.cmake
index ef3b4f5dde2..1c19d7e01af 100644
--- a/libcxx/cmake/Modules/HandleLibCXXABI.cmake
+++ b/libcxx/cmake/Modules/HandleLibCXXABI.cmake
@@ -41,7 +41,7 @@ macro(setup_abi_lib abidefines abilib abifiles abidirs)
get_filename_component(ifile ${fpath} NAME)
set(src ${incpath}/${fpath})
- set(dst ${LIBCXX_BINARY_INCLUDE_DIR}/${dstdir}/${fpath})
+ set(dst ${LIBCXX_BINARY_INCLUDE_DIR}/${dstdir}/${ifile})
add_custom_command(OUTPUT ${dst}
DEPENDS ${src}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dst}
OpenPOWER on IntegriCloud