summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2c8d0b8)
* Do not set EXECINFO_INCLUDES to empty it it is NOTFOUND, it is only
used when EXECINFO_FOUND is set, which is the expected behavior
* Simplify checking for the find_path() and find_library() result,
CMake considers a variable false if its value is VARNAME-NOTFOUND
Resolves GH-222.
find_path(EXECINFO_INCLUDES "execinfo.h")
find_path(EXECINFO_INCLUDES "execinfo.h")
-if(EXECINFO_INCLUDES STREQUAL "EXECINFO_INCLUDES-NOTFOUND")
- set(EXECINFO_INCLUDES "")
-else()
# 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")
# 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)")
# Built-in, no further action is needed
set(EXECINFO_LIBRARIES "")
message(STATUS "Found execinfo (built-in)")