vcpkg/ports/opencv4/0019-fix-ogre-dependency.patch

10 lines
395 B
Diff
Raw Normal View History

2023-08-25 07:20:15 +08:00
--- a/modules/ovis/CMakeLists.txt
+++ b/modules/ovis/CMakeLists.txt
@@ -27,4 +27,6 @@ ocv_create_module()
ocv_add_samples(opencv_aruco)
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-parameter)
+# The target always has the name OgreGLSupport
+string(REPLACE "OgreGLSupportStatic" "OgreGLSupport" OGRE_LIBRARIES "${OGRE_LIBRARIES}")
ocv_target_link_libraries(${the_module} ${OGRE_LIBRARIES})