-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from edunad/improvements/exceptions
Add RAWRBOX_TRACE_EXCEPTIONS
- Loading branch information
Showing
9 changed files
with
60 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,9 +77,13 @@ if(thread-pool_ADDED) | |
endif() | ||
|
||
# DEPS ---- | ||
CPMAddPackage("gh:jeremy-rifkin/[email protected]") | ||
if(cpptrace_ADDED) | ||
set_lib_runtime_mt(cpptrace-lib) | ||
if(RAWRBOX_TRACE_EXCEPTIONS) | ||
CPMAddPackage("gh:jeremy-rifkin/[email protected]") | ||
if(cpptrace_ADDED) | ||
set_lib_runtime_mt(cpptrace-lib) | ||
endif() | ||
|
||
list(APPEND EXTRA_UTIL_LIBS cpptrace::cpptrace) | ||
endif() | ||
# -------------- | ||
# ---- | ||
|
@@ -90,14 +94,17 @@ target_include_directories(${output_target} PUBLIC "include" ${EXTRA_UTIL_INCLUD | |
target_compile_features(${output_target} PUBLIC cxx_std_${CMAKE_CXX_STANDARD}) | ||
target_compile_definitions(${output_target} PRIVATE _CRT_SECURE_NO_WARNINGS NOMINMAX) | ||
target_compile_definitions(${output_target} PUBLIC RAWRBOX_UTILS) | ||
if(RAWRBOX_TRACE_EXCEPTIONS) | ||
target_compile_definitions(${output_target} PUBLIC RAWRBOX_TRACE_EXCEPTIONS) | ||
endif() | ||
|
||
target_link_libraries(${output_target} PUBLIC | ||
${EXTRA_UTIL_LIBS} | ||
|
||
thread-pool | ||
fmt::fmt | ||
glaze::glaze | ||
magic_enum::magic_enum | ||
cpptrace::cpptrace | ||
) | ||
|
||
set_lib_runtime_mt(${output_target}) | ||
|
@@ -107,7 +114,7 @@ set_lib_runtime_mt(${output_target}) | |
include(../cmake/catch2.cmake) | ||
# -------------- | ||
|
||
if(WIN32) | ||
if(WIN32 AND RAWRBOX_TRACE_EXCEPTIONS) | ||
add_custom_command( | ||
TARGET ${output_target} POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters