diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-25 05:58:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 11:22:50 +0200 |
commit | 66709cb944c8299a4324fcea5f6851862cc7d258 (patch) | |
tree | 63d806dcf16ea25bc7f3c8e228fb54cef48c870f /tracker-neuralnet | |
parent | 454ba7be3a2b0d86c2bea0845a6e4c009d0675fc (diff) |
opentrack, tracker/nn: enable exceptions
Diffstat (limited to 'tracker-neuralnet')
-rw-r--r-- | tracker-neuralnet/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tracker-neuralnet/CMakeLists.txt b/tracker-neuralnet/CMakeLists.txt index 70850925..fe8c85b2 100644 --- a/tracker-neuralnet/CMakeLists.txt +++ b/tracker-neuralnet/CMakeLists.txt @@ -4,6 +4,11 @@ find_package(OpenMP QUIET) # Used to control number of onnx threads. find_package(ONNXRuntime QUIET) if(OpenCV_FOUND AND ONNXRuntime_FOUND AND OpenMP_FOUND) + if(MSVC) + add_compile_options(-EHsc) + add_definitions(-D_HAS_EXCEPTIONS=1) + endif() + otr_module(tracker-neuralnet) target_link_libraries(${self} |