Merge pull request #301 from LaurensVoerman/Submit_linkWithVariables

fix for visual studio trying to link "debug.lib" and "release.lib"
This commit is contained in:
OpenSceneGraph git repository 2017-08-17 13:55:13 +01:00 committed by GitHub
commit fa61cca6ea

View File

@ -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)