Skip to content

Commit

Permalink
Add more doc for avaialbe options for USE_LIBBACKTRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
yelite committed Jan 20, 2023
1 parent 1f08062 commit 61787d6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmake/modules/Logging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ macro(__compile_libbacktrace)
set(LIBBACKTRACE_FOUND YES)
endmacro()


# Available options for USE_LIBBACKTRACE:
# - OFF: Don't use libbacktrace
# - ON: Find libbacktrace from system paths. Fail the build generation if libbacktrace is not found.
# - COMPILE: Build and link to libbacktrace from 3rdparty/libbacktrace.
# - <PATH>: Looking for the libbacktrace header and static lib from a user-provided path. Fail the build generation if libbacktrace is not found.
# - AUTO:
# - Find libbacktrace from system paths.
# - If not found, fallback to COMPILE on Linux or MacOS, fallback to OFF on Windows.
if(USE_LIBBACKTRACE STREQUAL "AUTO")
__find_libbacktrace()
if(NOT LIBBACKTRACE_FOUND AND (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin"))
Expand Down

0 comments on commit 61787d6

Please sign in to comment.