From 17e4c38739aa78638c783dac6c149858d1c0a550 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 26 Mar 2020 09:51:04 -0700 Subject: [PATCH] [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 --- lldb/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 00b0611..7e8890d 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}/../ -- 2.7.4