Sha256: 9e556a004b56382ce94f5582ffa232774f913dd27640a79a38e242a4ce6708d8

Contents?: true

Size: 1009 Bytes

Versions: 22

Compression:

Stored size: 1009 Bytes

Contents

include(CMakePushCheckState)
include(CheckSymbolExists)

cmake_push_check_state(RESET)
find_library(EXECINFO_LIBRARY NAMES execinfo)
if(EXECINFO_LIBRARY)
  set(CMAKE_REQUIRED_LIBRARIES "${EXECINFO_LIBRARY}")
  list(APPEND PLATFORM_LIBRARIES "${EXECINFO_LIBRARY}")
endif(EXECINFO_LIBRARY)
check_symbol_exists(backtrace execinfo.h HAVE_BACKTRACE)
cmake_pop_check_state()

cmake_push_check_state(RESET)
set(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE")
find_library(DL_LIBRARY NAMES dl)
if(DL_LIBRARY)
  set(CMAKE_REQUIRED_LIBRARIES "${DL_LIBRARY}")
  list(APPEND PLATFORM_LIBRARIES "${DL_LIBRARY}")
endif(DL_LIBRARY)
check_symbol_exists(dladdr dlfcn.h HAVE_DLADDR)
cmake_pop_check_state()

if(HAVE_BACKTRACE)
  add_definitions(-DHAVE_BACKTRACE=1)
endif()

if(HAVE_DLADDR)
  add_definitions(-DHAVE_DLADDR=1)
endif()

if(HAVE_BACKTRACE OR HAVE_DLADDR)
  target_compile_options(project_options INTERFACE -ggdb3)
  target_link_libraries(project_options INTERFACE -rdynamic)
  add_definitions(-D_GNU_SOURCE=1)
endif()

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
couchbase-3.5.4 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.5.3 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.5.2 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.5.1 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.5.0 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.4.5 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.4.4 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.4.3 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.4.2 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.4.1 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.4.0 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.3.0 ext/couchbase/cmake/Backtrace.cmake
couchbase-3.2.0-universal-darwin-20 ext/cmake/Backtrace.cmake
couchbase-3.2.0 ext/cmake/Backtrace.cmake
couchbase-3.1.1 ext/cmake/Backtrace.cmake
couchbase-3.1.1-universal-darwin-20 ext/cmake/Backtrace.cmake
couchbase-3.1.0 ext/cmake/Backtrace.cmake
couchbase-3.0.3 ext/cmake/Backtrace.cmake
couchbase-3.0.3-universal-darwin-20 ext/cmake/Backtrace.cmake
couchbase-3.0.2 ext/cmake/Backtrace.cmake