Simplify FindExecInfo
[quassel.git] / cmake / FindExecInfo.cmake
index 94a5b88..f8599a6 100644 (file)
@@ -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)")