Am Sonntag, 30. April 2017 um 04:23:07, schrieb Uwe Stöhr <uwesto...@web.de>
> El 30.04.2017 a las 03:48, Uwe Stöhr escribió:
> 
> > Fixing this in the Cmake Gui leads me to this error which I cannot 
> > overcome:
> > 
> > C:\Program Files 
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): 
> > error 
> > MSB3073: Der Befehl "setlocal\r 
> 
> I found now the problem: configuring CMake the fist time will set 
> PYTHON_EXECUTABLE and LYX_PYTHON_EXECUTABLE to the python library found 
> in the specified GNUWIN32_DIR:
> D:/LyXGit/Master/lyx-windows-deps-msvc2015/Python/python.exe
> 
> But one needs the path to the Python installation, so in my case setting 
> LYX_PYTHON_EXECUTABLE to C:/Python27/python.exe fixed the problem.
> 
> Kornel, is there anything that could be done here? I mean if CMake 
> cannot find the python.exe that is installed, then LYX_PYTHON_EXECUTABLE 
> should be kept empty so that one get an error during the configuration 
> of CMake and then knows that one has to specify the path to the python 
> executable.

You could try with setting the path at CMakeLists.txt:729
        list(APPEND CMAKE_PROGRAM_PATH  "C:/Python27" "${GNUWIN32_DIR}/Python" )
The original line is from commit 03e7e5cfb
        Peter Kümmel: improve configuration with cmake-gui

> thanks and regards
> Uwe

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to