Browse Source

don't compile tools and examples when crosscompile (#2389)

When cross-compiling, such as arm-linux-gnueabihf,
x86 OpenCV may be wrongly found by tools & examples targets.
Turn tools and examples off when cross compiling.
tags/20201208
Zhuo Zhang GitHub 5 years ago
parent
commit
18dab0ee4f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      CMakeLists.txt

+ 1
- 1
CMakeLists.txt View File

@@ -54,7 +54,7 @@ option(NCNN_BUILD_TESTS "build tests" OFF)
option(NCNN_COVERAGE "build for coverage" OFF)
option(NCNN_BUILD_BENCHMARK "build benchmark" ON)

if(ANDROID OR IOS OR NCNN_SIMPLESTL)
if(ANDROID OR IOS OR NCNN_SIMPLESTL OR CMAKE_CROSSCOMPILING)
option(NCNN_DISABLE_RTTI "disable rtti" ON)
option(NCNN_BUILD_TOOLS "build tools" OFF)
option(NCNN_BUILD_EXAMPLES "build examples" OFF)


Loading…
Cancel
Save