--- osgQt-3.5.7/CMakeModules/OsgMacroUtils.cmake.orig	2020-02-26 10:34:59.427852800 +0300
+++ osgQt-3.5.7/CMakeModules/OsgMacroUtils.cmake	2020-02-26 10:42:37.987916700 +0300
@@ -43,7 +43,7 @@
 MACRO(LINK_WITH_VARIABLES TRGTNAME)
     FOREACH(varname ${ARGN})
         IF(${varname}_DEBUG)
-            TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}}" debug "${${varname}_DEBUG}")
+            TARGET_LINK_LIBRARIES(${TRGTNAME} "${${varname}_DEBUG}")
         ELSE(${varname}_DEBUG)
             TARGET_LINK_LIBRARIES(${TRGTNAME} "${${varname}}" )
         ENDIF(${varname}_DEBUG)
