mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
[build][cmake] Fix OS X build with brew.
This commit is contained in:
parent
50b2d7352a
commit
dc14d2cfed
@ -121,6 +121,7 @@ if (UNIX)
|
|||||||
/usr/include/x86_64-linux-gnu
|
/usr/include/x86_64-linux-gnu
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
/opt/local/include
|
/opt/local/include
|
||||||
|
/usr/local/opt/icu4c/include
|
||||||
CMAKE_FIND_ROOT_PATH_BOTH
|
CMAKE_FIND_ROOT_PATH_BOTH
|
||||||
)
|
)
|
||||||
if ("${ICU_INCLUDE_DIR}" STREQUAL "ICU_INCLUDE_DIR-NOTFOUND")
|
if ("${ICU_INCLUDE_DIR}" STREQUAL "ICU_INCLUDE_DIR-NOTFOUND")
|
||||||
@ -236,6 +237,7 @@ if (APPLE)
|
|||||||
if (NOT CMAKE_CROSSCOMPILING)
|
if (NOT CMAKE_CROSSCOMPILING)
|
||||||
include_directories(/opt/local/include)
|
include_directories(/opt/local/include)
|
||||||
link_directories(/opt/local/lib)
|
link_directories(/opt/local/lib)
|
||||||
|
link_directories(/usr/local/opt/icu4c/lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_library(LIB_CoreFoundation CoreFoundation)
|
find_library(LIB_CoreFoundation CoreFoundation)
|
||||||
|
@ -245,6 +245,10 @@ set(functions_list
|
|||||||
)
|
)
|
||||||
check_functions(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_cxx_source_compiles("#include <unistd.h>\nmain(){fdatasync(0);}" HAVE_FDATASYNC)
|
||||||
|
|
||||||
check_library_exists(dl dladdr "${CMAKE_LIBRARY_PREFIX}" HAVE_DLADDR)
|
check_library_exists(dl dladdr "${CMAKE_LIBRARY_PREFIX}" HAVE_DLADDR)
|
||||||
|
Loading…
Reference in New Issue
Block a user