[BUGFIX] Fix libevent build error on Darwin

This commit is contained in:
Zhang Chi 2018-07-17 15:52:42 +08:00
parent ccd741616f
commit 083b593973

View file

@ -114,8 +114,7 @@ link_directories( ${BORINGSSL_LIB} )
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories( include )
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Find libevent on FreeBSD:
include_directories( /usr/local/include )
link_directories( /usr/local/lib )