Skip to content

Commit 17e4c38

Browse files
committed
[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
1 parent 4dc8472 commit 17e4c38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ if (LLDB_ENABLE_PYTHON)
224224
else()
225225
set(LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_RELATIVE_PATH})
226226
endif()
227+
string(REPLACE ${CMAKE_CFG_INTDIR} "\$\{CMAKE_INSTALL_CONFIG_NAME\}" LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_INSTALL_PATH})
228+
string(REPLACE ${CMAKE_CFG_INTDIR} "\$\{CMAKE_INSTALL_CONFIG_NAME\}" lldb_python_build_path ${lldb_python_build_path})
227229
add_custom_target(lldb-python-scripts)
228230
add_dependencies(lldb-python-scripts finish_swig)
229231
install(DIRECTORY ${lldb_python_build_path}/../

0 commit comments

Comments
 (0)