diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-01 20:14:38 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-01 20:14:38 +0100 |
commit | 6656b9f5b99733e88c776579dcaa07877d816a79 (patch) | |
tree | 469939915efa5d0c347337890c50033692641ac0 /tracker-neuralnet | |
parent | cf1d653a6b90bd90b855c23890f327b778ef4ab8 (diff) |
cmake: fix onnx broken build on 32-bit Linux
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 f414c920..4689dba1 100644 --- a/tracker-neuralnet/CMakeLists.txt +++ b/tracker-neuralnet/CMakeLists.txt @@ -1,4 +1,9 @@ include(opentrack-opencv) +set(host-spec "${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR} ${CMAKE_SIZEOF_VOID_P}") +if(host-spec MATCHES "^Linux i[3-6]86 4$") + return() +endif() + find_package(OpenCV QUIET) find_package(OpenMP QUIET) # Used to control number of onnx threads. find_package(ONNXRuntime QUIET) |