Skip to content

CMake config error for windbg_cached #226

@DerJJ

Description

@DerJJ

When Building with

set(BOOST_STACKTRACE_ENABLE_WINDBG OFF CACHE BOOL "Boost.Stacktrace: build boost_stacktrace_windbg" )
set(BOOST_STACKTRACE_ENABLE_WINDBG_CACHED ON CACHE BOOL "Boost.Stacktrace: build boost_stacktrace_windbg_cached" )

cmake reports this error

CMake Error at D:/build/callstackTest/boost/boost/libs/stacktrace/CMakeLists.txt:120 (target_link_libraries):
The link interface of target "boost_stacktrace" contains:

Boost::stacktrace_windbg

but the target was not found.

The culprit seems to be a copy and paste error

elseif(BOOST_STACKTRACE_ENABLE_WINDBG_CACHED)

 target_link_libraries(boost_stacktrace INTERFACE Boost::stacktrace_windbg)

should be:
target_link_libraries(boost_stacktrace INTERFACE Boost::stacktrace_windbg_cached)

Sorry, from my work environment I am not able to create a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions