From 18728174ef5c5d6c5428de9f4d01c713102fd0ea Mon Sep 17 00:00:00 2001 From: Leander Schulten Date: Sat, 15 Jul 2023 17:09:09 +0200 Subject: [PATCH] Ogre fix target name if ogre is build static --- modules/ovis/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ovis/CMakeLists.txt b/modules/ovis/CMakeLists.txt index 912b86a590d..cc04ab5703c 100644 --- 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})