[CMake] Pass CMAKE_INSTALL_DO_STRIP to external projects

This is necessary to make install-<target>-stripped work for
external projects such as runtimes.

Differential Revision: https://reviews.llvm.org/D49335

llvm-svn: 337115
This commit is contained in:
Petr Hosek 2018-07-15 02:12:25 +00:00
parent 73ed2e6a54
commit 7629f987c1
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ function(llvm_ExternalProject_Add name source_dir)
endif() endif()
if(NOT ARG_NO_INSTALL) if(NOT ARG_NO_INSTALL)
install(CODE "execute_process\(COMMAND \${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=\${CMAKE_INSTALL_PREFIX} -P ${BINARY_DIR}/cmake_install.cmake \)" install(CODE "execute_process\(COMMAND \${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=\${CMAKE_INSTALL_PREFIX} -DCMAKE_INSTALL_DO_STRIP=\${CMAKE_INSTALL_DO_STRIP} -P ${BINARY_DIR}/cmake_install.cmake\)"
COMPONENT ${name}) COMPONENT ${name})
add_llvm_install_targets(install-${name} add_llvm_install_targets(install-${name}