diff --git a/CMakeLists.txt b/CMakeLists.txt index 790595e..5e882a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ if(BACKTRACE_LIBC) else() pkg_check_modules( UNWIND libunwind ) find_library(EXECINFO_LIBRARIES NAMES execinfo) - if(EXECINFO_LIBRARIES_FOUND) + if(EXECINFO_LIBRARIES) set(EXECINFO_FOUND TRUE) set(EXECINFO_LIBRARIES "-lexecinfo") set(BACKTRACE_L_FLAGS "-rdynamic")