Seems to be fixed in OpenCV 3.4.2.
Description
Description
Revisions and Commits
Revisions and Commits
Restricted Differential Revision |
Related Objects
Related Objects
Event Timeline
Comment Actions
Compiles now but cannot link to python37.lib. This is because of the value of PYTHON3_LIBRARY in the CMake cache of OpenCV-build: optimized;optimized;debug;C:/Python37/libs/python37_d.lib. This should be simply C:/Python37/libs/python37_d.lib instead. PYTHON3_LIBRARY_DEBUG is set correctly.
Possible solution: Instead of passing PYTHON_LIBRARY to the external project, try to pass PYTHON3_LIBRARY. If it gets overridden, pass it as CMAKE_CACHE_ARGS instead of CMAKE_ARGS in CMakeExternals/OpenCV.cmake. This way OpenCV shouldn't be able to override this value anymore.
One has to understand how OpenCV-build/cmake/OpenCVDetectPython.cmake works to fix this issue I guess.