[Lldb-commits] [lldb] 17e4c38 - [lldb/CMake] Fix `install` for multi-configuration generators.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 26 09:51:41 PDT 2020
Author: Jonas Devlieghere
Date: 2020-03-26T09:51:29-07:00
New Revision: 17e4c38739aa78638c783dac6c149858d1c0a550
URL: https://github.com/llvm/llvm-project/commit/17e4c38739aa78638c783dac6c149858d1c0a550
DIFF: https://github.com/llvm/llvm-project/commit/17e4c38739aa78638c783dac6c149858d1c0a550.diff
LOG: [lldb/CMake] Fix `install` for multi-configuration generators.
For multi-generator builds like MSVC and Xcode, the install source and
destination of the lldb-python-scripts target contains configuration
dependent paths and therefore need to be substituted.
Differential revision: https://reviews.llvm.org/D76827
Added:
Modified:
lldb/CMakeLists.txt
Removed:
################################################################################
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt
index 00b06119d64a..7e8890da0204 100644
--- a/lldb/CMakeLists.txt
+++ b/lldb/CMakeLists.txt
@@ -224,6 +224,8 @@ if (LLDB_ENABLE_PYTHON)
else()
set(LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_RELATIVE_PATH})
endif()
+ string(REPLACE ${CMAKE_CFG_INTDIR} "\$\{CMAKE_INSTALL_CONFIG_NAME\}" LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_INSTALL_PATH})
+ string(REPLACE ${CMAKE_CFG_INTDIR} "\$\{CMAKE_INSTALL_CONFIG_NAME\}" lldb_python_build_path ${lldb_python_build_path})
add_custom_target(lldb-python-scripts)
add_dependencies(lldb-python-scripts finish_swig)
install(DIRECTORY ${lldb_python_build_path}/../
More information about the lldb-commits
mailing list