diff options
author | Chris Bieneman <beanz@apple.com> | 2017-07-25 20:30:35 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2017-07-25 20:30:35 +0000 |
commit | 4a1db1b0379412ffa0da4b98a231abc71e2f79e9 (patch) | |
tree | 5175455dc4cdca24c56d27f54efb851f40f2cc93 | |
parent | 5493c34c85de7ce3cc8532b982e04bcd071bfaaf (diff) | |
download | bcm5719-llvm-4a1db1b0379412ffa0da4b98a231abc71e2f79e9.tar.gz bcm5719-llvm-4a1db1b0379412ffa0da4b98a231abc71e2f79e9.zip |
[CMake] Fix framework build
The LLDB framework build looks for the swig-generated source in the wrong place. This should resolve that.
llvm-svn: 309023
-rw-r--r-- | lldb/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index ada293811b3..367325f6fc9 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -32,14 +32,16 @@ if (NOT LLDB_DISABLE_PYTHON) endif() set(LLDB_PYTHON_TARGET_DIR ${LLDB_BINARY_DIR}/scripts) + set(LLDB_WRAP_PYTHON ${LLDB_BINARY_DIR}/scripts/LLDBWrapPython.cpp) if(LLDB_BUILD_FRAMEWORK) set(LLDB_PYTHON_TARGET_DIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${LLDB_FRAMEWORK_INSTALL_DIR}) + set(LLDB_WRAP_PYTHON ${LLDB_PYTHON_TARGET_DIR}/LLDBWrapPython.cpp) else() # Don't set -m when building the framework. set(FINISH_EXTRA_ARGS "-m") endif() - set(LLDB_WRAP_PYTHON ${LLDB_BINARY_DIR}/scripts/LLDBWrapPython.cpp) + add_subdirectory(scripts) endif () |