X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=cmake%2FFindExecInfo.cmake;fp=cmake%2FFindExecInfo.cmake;h=94a5b8817d07c289b9b7c54f47a32a5c679be8cd;hp=042a1151f5fc34353eff8605182a77434da59f49;hb=622ae84876eaab27ab232ee72e97e090b0aa57c0;hpb=8cacd45fd61aeaa5a50ed9985577022cae00fcff diff --git a/cmake/FindExecInfo.cmake b/cmake/FindExecInfo.cmake index 042a1151..94a5b881 100644 --- a/cmake/FindExecInfo.cmake +++ b/cmake/FindExecInfo.cmake @@ -9,7 +9,7 @@ find_path(EXECINFO_INCLUDES "execinfo.h") if(EXECINFO_INCLUDES STREQUAL "EXECINFO_INCLUDES-NOTFOUND") set(EXECINFO_INCLUDES "") -else(EXECINFO_INCLUDES STREQUAL "EXECINFO_INCLUDES-NOTFOUND") +else() # We found the header file's include dir. # Now determine if it's built-in or not, by searching the library file. @@ -19,11 +19,11 @@ else(EXECINFO_INCLUDES STREQUAL "EXECINFO_INCLUDES-NOTFOUND") # Built-in, no further action is needed set(EXECINFO_LIBRARIES "") message(STATUS "Found execinfo (built-in)") - else(EXECINFO_LIBRARIES STREQUAL "EXECINFO_LIBRARIES-NOTFOUND") + else() # It's an external library. message(STATUS "Found execinfo: ${EXECINFO_LIBRARIES}") - endif(EXECINFO_LIBRARIES STREQUAL "EXECINFO_LIBRARIES-NOTFOUND") + endif() set(EXECINFO_FOUND true) -endif(EXECINFO_INCLUDES STREQUAL "EXECINFO_INCLUDES-NOTFOUND") +endif()