use cmake generator expression to fixup correct ssleay

This commit is contained in:
Stephen Birarda 2016-01-15 10:41:08 -08:00
parent e19b61bcbf
commit bb9f7856f4

View file

@ -53,7 +53,8 @@ endif()
file(GLOB EXTRA_LIBRARIES "${BUNDLE_PLUGIN_DIR}/*.${PLUGIN_EXTENSION}")
if (MANUAL_SSLEAY_COPY)
file(SET EXTRA_LIBRARIES ${EXTRA_LIBRARIES} ${SSL_EAY_LIBRARY_RELEASE})
message(STATUS "Adding $<$<CONFIG:Debug>:"@SSL_EAY_LIBRARY_DEBUG@"> $<$<NOT:$<CONFIG:Debug>>:"@SSL_EAY_LIBRARY_RELEASE@"> to fixed up libraries")
list(APPEND EXTRA_LIBRARIES $<$<CONFIG:Debug>:${SSL_EAY_LIBRARY_DEBUG}> $<$<NOT:$<CONFIG:Debug>>:${SSL_EAY_LIBRARY_RELEASE}>)
endif()
fixup_bundle("${BUNDLE_EXECUTABLE}" "${EXTRA_LIBRARIES}" "@FIXUP_LIBS@")