X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=cmake%2FFindExecInfo.cmake;fp=cmake%2FFindExecInfo.cmake;h=0000000000000000000000000000000000000000;hp=f8599a6aacfd8825ed7ea98cf2b3408fff4330c2;hb=222d0be6ffa0f6c63c3c8c5a303260b9aee10e68;hpb=9b689f0e308cc0007f63086c3dc45db219d5b7db diff --git a/cmake/FindExecInfo.cmake b/cmake/FindExecInfo.cmake deleted file mode 100644 index f8599a6a..00000000 --- a/cmake/FindExecInfo.cmake +++ /dev/null @@ -1,27 +0,0 @@ -# Set up execinfo - -# The problem with this library is that it is built-in in the Linux glib, -# while on systems like FreeBSD, it is installed separately and thus needs to be linked to. -# Therefore, we search for the header to see if the it's available in the first place. -# If it is available, we try to locate the library to figure out whether it is built-in or not. - -find_path(EXECINFO_INCLUDES "execinfo.h") - -if(EXECINFO_INCLUDES) - # We found the header file's include dir. - - # Now determine if it's built-in or not, by searching the library file. - find_library(EXECINFO_LIBRARIES "execinfo") - - if(NOT EXECINFO_LIBRARIES) - # Built-in, no further action is needed - set(EXECINFO_LIBRARIES "") - message(STATUS "Found execinfo (built-in)") - else() - # It's an external library. - message(STATUS "Found execinfo: ${EXECINFO_LIBRARIES}") - endif() - - set(EXECINFO_FOUND true) - -endif()