From 344f6bae1929c87fa62a601ea53433d2b79ee0c0 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Wed, 16 Oct 2024 15:13:44 +0300 Subject: [PATCH] Always link boost_stacktrace/Boost::stacktrace with Boost::stacktrace_from_exception if it is awailable in CMake --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b936bb4..2faafce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,7 +132,9 @@ elseif(BOOST_STACKTRACE_ENABLE_NOOP) target_link_libraries(boost_stacktrace INTERFACE Boost::stacktrace_noop) -elseif(BOOST_STACKTRACE_ENABLE_FROM_EXCEPTION) +endif() + +if(BOOST_STACKTRACE_ENABLE_FROM_EXCEPTION) target_link_libraries(boost_stacktrace INTERFACE Boost::stacktrace_from_exception)