diff --git a/CMakeLists.txt b/CMakeLists.txt index a7b86554c..ae45197d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,7 +154,7 @@ endif() find_package(PkgConfig REQUIRED) find_package(Threads REQUIRED) find_package(Backtrace) -if(Backtrace_FOUND) +if(TARGET Backtrace::Backtrace) set(HAVE_BACKTRACE ON) endif() find_package(Boost CONFIG)