mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
Have CMake translate LLDB_PYTHON_HOME to forward slashes.
Using backslashes causes the compiler to interpret them as escape sequences. llvm-svn: 249885
This commit is contained in:
@@ -167,7 +167,8 @@ if (NOT LLDB_DISABLE_PYTHON)
|
||||
find_python_libs_windows()
|
||||
|
||||
if (NOT LLDB_RELOCATABLE_PYTHON)
|
||||
add_definitions( -DLLDB_PYTHON_HOME="${PYTHON_HOME}" )
|
||||
file(TO_CMAKE_PATH "${PYTHON_HOME}" LLDB_PYTHON_HOME)
|
||||
add_definitions( -DLLDB_PYTHON_HOME="${LLDB_PYTHON_HOME}" )
|
||||
endif()
|
||||
else()
|
||||
find_package(PythonLibs REQUIRED)
|
||||
|
||||
Reference in New Issue
Block a user