Browse Source

let check_include_files() can find pcre installed by homebrew on macOS

pull/2307/head
ideal 5 years ago
parent
commit
3a641953ca
1 changed files with 3 additions and 0 deletions
  1. 3
      cmake/configure.cmake

3
cmake/configure.cmake

@ -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)

Loading…
Cancel
Save