links zlib on mac if found

This commit is contained in:
valzav 2014-11-26 10:34:31 -05:00
parent 5dbab6ba11
commit 0e4aeb135a

View file

@ -341,6 +341,13 @@ if(WIN32)
endif(WIN32)
if(APPLE)
find_package( ZLIB REQUIRED )
if ( ZLIB_FOUND )
target_link_libraries( fc PUBLIC ${ZLIB_LIBRARIES} )
endif()
endif()
SET(OPENSSL_CONF_TARGET )
IF(DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
SET (OPENSSL_CONF_TARGET ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})