Author: zturner Date: Fri Oct 9 14:45:26 2015 New Revision: 249885 URL: http://llvm.org/viewvc/llvm-project?rev=249885&view=rev Log: Have CMake translate LLDB_PYTHON_HOME to forward slashes.
Using backslashes causes the compiler to interpret them as escape sequences. Modified: lldb/trunk/cmake/modules/LLDBConfig.cmake Modified: lldb/trunk/cmake/modules/LLDBConfig.cmake URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/LLDBConfig.cmake?rev=249885&r1=249884&r2=249885&view=diff ============================================================================== --- lldb/trunk/cmake/modules/LLDBConfig.cmake (original) +++ lldb/trunk/cmake/modules/LLDBConfig.cmake Fri Oct 9 14:45:26 2015 @@ -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) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits