File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,20 @@ stacktrace_add_library(basic ${BOOST_STACKTRACE_ENABLE_BASIC} "" "")
96
96
stacktrace_add_library(windbg ${BOOST_STACKTRACE_ENABLE_WINDBG} "dbgeng;ole32" "_GNU_SOURCE=1" )
97
97
stacktrace_add_library(windbg_cached ${BOOST_STACKTRACE_ENABLE_WINDBG_CACHED} "dbgeng;ole32" "_GNU_SOURCE=1" )
98
98
99
+
100
+ # Alias target for platform defaults (only if they enabled).
101
+ if (WIN32 )
102
+ if (BOOST_STACKTRACE_ENABLE_WINDBG)
103
+ add_library (Boost::stacktrace ALIAS Boost::stacktrace_windbg)
104
+ endif ()
105
+ else ()
106
+ if (BOOST_STACKTRACE_ENABLE_BACKTRACE)
107
+ add_library (Boost::stacktrace ALIAS Boost::stacktrace_backtrace)
108
+ elseif (BOOST_STACKTRACE_ENABLE_BASIC)
109
+ add_library (Boost::stacktrace ALIAS Boost::stacktrace_basic)
110
+ endif ()
111
+ endif ()
112
+
99
113
if (BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /test/CMakeLists.txt" )
100
114
101
115
add_subdirectory (test )
You can’t perform that action at this time.
0 commit comments