Skip to content

Commit

Permalink
let check_include_files() can find pcre installed by homebrew on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ideal committed Mar 4, 2019
1 parent 90a99cd commit 3a64195
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ include(CheckCSourceCompiles)
set(CONNECT_IN_PROGRESS "EINPROGRESS")
set(CONNECT_IN_PROGRESS "EINPROGRESS" CACHE STRING "")

if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
set(CMAKE_REQUIRED_INCLUDES "/usr/local/include" "/usr/include")
endif ()

check_include_files(dlfcn.h HAVE_DLFCN_H)
check_include_files(ev.h HAVE_EV_H)
Expand Down

0 comments on commit 3a64195

Please sign in to comment.