Fix for better picking up 3rd party dependencies
This commit is contained in:
parent
a3e11f1d50
commit
5b7ef57ad7
@ -43,7 +43,11 @@ SET(VALID_BUILDER_VERSION OFF)
|
|||||||
MACRO(LINK_WITH_VARIABLES TRGTNAME)
|
MACRO(LINK_WITH_VARIABLES TRGTNAME)
|
||||||
FOREACH(varname ${ARGN})
|
FOREACH(varname ${ARGN})
|
||||||
IF(${varname}_DEBUG)
|
IF(${varname}_DEBUG)
|
||||||
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}}" debug "${${varname}_DEBUG}")
|
IF(${varname}_RELEASE)
|
||||||
|
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}_RELEASE}" debug "${${varname}_DEBUG}")
|
||||||
|
ELSE(${varname}_RELEASE)
|
||||||
|
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}}" debug "${${varname}_DEBUG}")
|
||||||
|
ENDIF(${varname}_RELEASE)
|
||||||
ELSE(${varname}_DEBUG)
|
ELSE(${varname}_DEBUG)
|
||||||
TARGET_LINK_LIBRARIES(${TRGTNAME} "${${varname}}" )
|
TARGET_LINK_LIBRARIES(${TRGTNAME} "${${varname}}" )
|
||||||
ENDIF(${varname}_DEBUG)
|
ENDIF(${varname}_DEBUG)
|
||||||
|
Loading…
Reference in New Issue
Block a user