8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +01:00

[build][cmake] Fix OS X build with brew.

This commit is contained in:
egorpugin 2015-07-28 16:40:25 +00:00
parent 50b2d7352a
commit dc14d2cfed
2 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,7 @@ if (UNIX)
/usr/include/x86_64-linux-gnu
/usr/local/include
/opt/local/include
/usr/local/opt/icu4c/include
CMAKE_FIND_ROOT_PATH_BOTH
)
if ("${ICU_INCLUDE_DIR}" STREQUAL "ICU_INCLUDE_DIR-NOTFOUND")
@ -236,6 +237,7 @@ if (APPLE)
if (NOT CMAKE_CROSSCOMPILING)
include_directories(/opt/local/include)
link_directories(/opt/local/lib)
link_directories(/usr/local/opt/icu4c/lib)
endif()
find_library(LIB_CoreFoundation CoreFoundation)

View File

@ -245,6 +245,10 @@ set(functions_list
)
check_functions(functions_list)
if (APPLE)
set(HAVE_QSORT_R 0 CACHE STRING "Disabled on OS X" FORCE)
endif()
check_cxx_source_compiles("#include <unistd.h>\nmain(){fdatasync(0);}" HAVE_FDATASYNC)
check_library_exists(dl dladdr "${CMAKE_LIBRARY_PREFIX}" HAVE_DLADDR)