Warning, /system/qtcurve/cmake/FindLibexecinfo.cmake is written in an unsupported language. File is not indexed.
0001 # Try to find Libexecinfo functionality 0002 # Once done this will define 0003 # 0004 # LIBEXECINFO_FOUND - system has Libexecinfo 0005 # LIBEXECINFO_INCLUDE_DIR - Libexecinfo include directory 0006 # LIBEXECINFO_LIBRARIES - Libraries needed to use Libexecinfo 0007 # 0008 # TODO: This will enable translations only if Gettext functionality is 0009 # present in libc. Must have more robust system for release, where Gettext 0010 # functionality can also reside in standalone Gettext library, or the one 0011 # embedded within kdelibs (cf. gettext.m4 from Gettext source). 0012 0013 # Copyright (c) 2006, Chusslove Illich, <caslav.ilic@gmx.net> 0014 # Copyright (c) 2007, Alexander Neundorf, <neundorf@kde.org> 0015 # 0016 # Redistribution and use is allowed according to the terms of the BSD license. 0017 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0018 0019 if(LIBEXECINFO_INCLUDE_DIR AND LIBEXECINFO_LIB_FOUND) 0020 set(Libexecinfo_FIND_QUIETLY TRUE) 0021 endif() 0022 0023 unset(LIBEXECINFO_INCLUDE_DIR CACHE) 0024 find_path(LIBEXECINFO_INCLUDE_DIR execinfo.h) 0025 0026 set(LIBEXECINFO_LIB_FOUND FALSE) 0027 0028 if(LIBEXECINFO_INCLUDE_DIR) 0029 include(CheckFunctionExists) 0030 check_function_exists(backtrace LIBEXECINFO_LIBC_HAS_LIBEXECINFO_BACKTRACE) 0031 0032 if(LIBEXECINFO_LIBC_HAS_LIBEXECINFO_BACKTRACE) 0033 set(LIBEXECINFO_LIBRARIES) 0034 set(LIBEXECINFO_LIB_FOUND TRUE) 0035 else() 0036 unset(LIBEXECINFO_LIBRARIES CACHE) 0037 find_library(LIBEXECINFO_LIBRARIES NAMES execinfo libexecinfo) 0038 if(LIBEXECINFO_LIBRARIES) 0039 set(LIBEXECINFO_LIB_FOUND TRUE) 0040 endif() 0041 endif() 0042 endif() 0043 0044 include(FindPackageHandleStandardArgs) 0045 find_package_handle_standard_args(Libexecinfo 0046 DEFAULT_MSG LIBEXECINFO_INCLUDE_DIR LIBEXECINFO_LIB_FOUND) 0047 mark_as_advanced(LIBEXECINFO_INCLUDE_DIR LIBEXECINFO_LIBRARIES 0048 LIBEXECINFO_LIBC_HAS_LIBEXECINFO_BACKTRACE LIBEXECINFO_LIB_FOUND)