From c939f7f0fc8e9af7348a486ee79c61b53b98d470 Mon Sep 17 00:00:00 2001 From: Laurens Voerman Date: Thu, 17 Aug 2017 11:44:06 +0200 Subject: [PATCH] fix for visual studio trying to link "debug.lib" and "release.lib" --- CMakeModules/OsgMacroUtils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeModules/OsgMacroUtils.cmake b/CMakeModules/OsgMacroUtils.cmake index bf2938176..12dd9a882 100644 --- a/CMakeModules/OsgMacroUtils.cmake +++ b/CMakeModules/OsgMacroUtils.cmake @@ -44,7 +44,7 @@ MACRO(LINK_WITH_VARIABLES TRGTNAME) TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}}" debug "${${varname}_DEBUG}") ENDIF(${varname}_RELEASE) ELSE(${varname}_DEBUG) - TARGET_LINK_LIBRARIES(${TRGTNAME} "${${varname}}" ) + TARGET_LINK_LIBRARIES(${TRGTNAME} ${${varname}} ) ENDIF(${varname}_DEBUG) ENDFOREACH(varname) ENDMACRO(LINK_WITH_VARIABLES TRGTNAME)