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:
Zachary Turner
2015-10-09 19:45:26 +00:00
parent 5ec1568c9c
commit 3a1acdd955

View File

@@ -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)