Skip to content

Commit

Permalink
cmake: Make explicit choice to disable stacktrace when Boost is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
IonAgorria committed Oct 7, 2024
1 parent 68026e5 commit f6ccdf0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/XTool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ IF(OPTION_DISABLE_STACKTRACE)
ELSE()
find_package(Boost 1.76.0)
IF(NOT Boost_FOUND)
MESSAGE("Stacktrace: No Boost found, unavailable")
SET(OPTION_DISABLE_STACKTRACE ON)
message(SEND_ERROR "Stacktrace: No Boost found and OPTION_DISABLE_STACKTRACE is not set")
ELSE()
#https://www.boost.org/doc/libs/1_78_0/doc/html/stacktrace/configuration_and_build.html
INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIRS})
Expand Down

0 comments on commit f6ccdf0

Please sign in to comment.