X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=cmake%2FFindExecInfo.cmake;fp=cmake%2FFindExecInfo.cmake;h=f8599a6aacfd8825ed7ea98cf2b3408fff4330c2;hp=94a5b8817d07c289b9b7c54f47a32a5c679be8cd;hb=3be4dcd0386965097be6a29fa30d4541118aa654;hpb=2c8d0b871a3afe6f00e7190a770162abd7a304e8 diff --git a/cmake/FindExecInfo.cmake b/cmake/FindExecInfo.cmake index 94a5b881..f8599a6a 100644 --- a/cmake/FindExecInfo.cmake +++ b/cmake/FindExecInfo.cmake @@ -7,15 +7,13 @@ find_path(EXECINFO_INCLUDES "execinfo.h") -if(EXECINFO_INCLUDES STREQUAL "EXECINFO_INCLUDES-NOTFOUND") - set(EXECINFO_INCLUDES "") -else() +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(EXECINFO_LIBRARIES STREQUAL "EXECINFO_LIBRARIES-NOTFOUND") + if(NOT EXECINFO_LIBRARIES) # Built-in, no further action is needed set(EXECINFO_LIBRARIES "") message(STATUS "Found execinfo (built-in)")