Cleaned up macOS-specific build config and make it work with more versions of the OS/Homebrew

This commit is contained in:
casey langen 2018-12-14 19:15:03 -08:00
parent 2df1dc8fd9
commit 1260ff663e

View File

@ -78,9 +78,8 @@ endif()
# "/opt/local" is the default installation location for MacPorts
if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
link_directories ("/usr/local/lib")
link_directories ("/usr/local/opt/openssl/lib")
include_directories("/usr/local/include")
link_directories ("/opt/local/lib")
include_directories("/opt/local/include")
include_directories("/usr/local/opt/openssl/include")
endif ()