Closed mzavadil closed 2 years ago
Ok, thanks for tracking that down, I have pushed this fix to master.
Thanks, the cmake
of windows build is working.
Hi! I have the same problem when trying to use CMake to install dlib. I didn't find where to edit PYTHON_VALUES in the file. Can I have a look at your full edited file, please?
Are you using Cmake version 3.15.3? There isn't a file FindPythonLibsNew.cmake but only FindPythonLibs on my computer, and the contents look a bit different.
I have no idea where we got this version from, it's shipped with Cadabra and we put it in place a long time ago, periodically updating. Actually, I believe we use the version that ships with pybind11.
The latest cmake I have used is 3.13.4 but that has little relevance to the origin of the FindPythonLibsNew.cmake file, as the latter does not ship with any of the cmake's I have used.
Is this still an issue?
The
cmake
fails on this weird error:The problem is in unhandled parsing of
_PYTHON_VALUES
strings with backslash (a windows path typical). If, for examplesys.prefix
(like on my machine) ended with backslash, the following text is then escaped.Line 1 and 2 was joined and on line 6 (= python bit-wise) jump value 37 (= python lib version) form line 7. Therefore, that curious value 296 of python bit-wise = 37 * 8.
I hotfixed
cmake/modules/FindPythonLibsNew.cmake
added extra replace:before exists