Skip to content

Commit

Permalink
Fix stacktrace_from_exception CMake builds (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin authored Oct 17, 2024
1 parent 344f6ba commit 088bf8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ stacktrace_add_library(addr2line ${BOOST_STACKTRACE_ENABLE_ADDR2LINE} "${CMAKE_D
stacktrace_add_library(basic ${BOOST_STACKTRACE_ENABLE_BASIC} "${CMAKE_DL_LIBS}" "")
stacktrace_add_library(windbg ${BOOST_STACKTRACE_ENABLE_WINDBG} "dbgeng;ole32" "_GNU_SOURCE=1")
stacktrace_add_library(windbg_cached ${BOOST_STACKTRACE_ENABLE_WINDBG_CACHED} "dbgeng;ole32" "_GNU_SOURCE=1")
stacktrace_add_library(from_exception ${BOOST_STACKTRACE_ENABLE_FROM_EXCEPTION} "${CMAKE_DL_LIBS}" "")

# boost_stacktrace, default library

Expand Down Expand Up @@ -134,11 +133,8 @@ elseif(BOOST_STACKTRACE_ENABLE_NOOP)

endif()

if(BOOST_STACKTRACE_ENABLE_FROM_EXCEPTION)

target_link_libraries(boost_stacktrace INTERFACE Boost::stacktrace_from_exception)

endif()
# Boost::stacktrace_from_exception is never the default
stacktrace_add_library(from_exception ${BOOST_STACKTRACE_ENABLE_FROM_EXCEPTION} "${CMAKE_DL_LIBS};boost_stacktrace" "")

#

Expand Down
2 changes: 0 additions & 2 deletions src/from_exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS

#if defined(_MSC_VER)

#include <boost/stacktrace/safe_dump_to.hpp>
Expand Down

0 comments on commit 088bf8e

Please sign in to comment.