summaryrefslogtreecommitdiffstats
path: root/libcxx/include
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-07-15 04:09:35 +0000
committerPetr Hosek <phosek@chromium.org>2018-07-15 04:09:35 +0000
commite32792d8bdd20fc122988c92e70c2b0aec4242dc (patch)
treebe728d1fff23c8f84cfaa182eb3ef8546700500b /libcxx/include
parentada5119c39012091b7c30c23f4cb0bd345240cb8 (diff)
downloadbcm5719-llvm-e32792d8bdd20fc122988c92e70c2b0aec4242dc.tar.gz
bcm5719-llvm-e32792d8bdd20fc122988c92e70c2b0aec4242dc.zip
[CMake] Use correct variable as header install prefix
This variable is already set in CMakeLists.txt but it wasn't used which means that the headers get installed into a wrong location when the per target runtime directory option is being used. Differential Revision: https://reviews.llvm.org/D49345 llvm-svn: 337118
Diffstat (limited to 'libcxx/include')
-rw-r--r--libcxx/include/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/CMakeLists.txt b/libcxx/include/CMakeLists.txt
index be0e10d50fa..e44ff3ef364 100644
--- a/libcxx/include/CMakeLists.txt
+++ b/libcxx/include/CMakeLists.txt
@@ -239,7 +239,7 @@ if (LIBCXX_INSTALL_HEADERS)
foreach(file ${files})
get_filename_component(dir ${file} DIRECTORY)
install(FILES ${file}
- DESTINATION ${LIBCXX_INSTALL_PATH}include/c++/v1/${dir}
+ DESTINATION ${LIBCXX_INSTALL_HEADER_PREFIX}include/c++/v1/${dir}
COMPONENT cxx-headers
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
@@ -248,7 +248,7 @@ if (LIBCXX_INSTALL_HEADERS)
if (LIBCXX_NEEDS_SITE_CONFIG)
# Install the generated header as __config.
install(FILES ${LIBCXX_BINARY_DIR}/__generated_config
- DESTINATION ${LIBCXX_INSTALL_PATH}include/c++/v1
+ DESTINATION ${LIBCXX_INSTALL_HEADER_PREFIX}include/c++/v1
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
RENAME __config
COMPONENT cxx-headers)
OpenPOWER on IntegriCloud