forked from OSchip/llvm-project
[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:
parent
73ed2e6a54
commit
7629f987c1
|
@ -221,7 +221,7 @@ function(llvm_ExternalProject_Add name source_dir)
|
|||
endif()
|
||||
|
||||
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})
|
||||
|
||||
add_llvm_install_targets(install-${name}
|
||||
|
|
Loading…
Reference in New Issue