mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
cmake: fix cross-compilation problems
- unexpected pkg-config module (we should not use host binary) - bump cmake_minimum_required to 3.5 in toolchain files
This commit is contained in:
@@ -25,7 +25,9 @@ endif()
|
||||
# Detect available dependencies
|
||||
#
|
||||
|
||||
include(FindPkgConfig)
|
||||
if(NOT PROJECT_NAME STREQUAL "OpenCV")
|
||||
include(FindPkgConfig)
|
||||
endif()
|
||||
|
||||
macro(add_backend backend_id cond_var)
|
||||
if(${cond_var})
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
include(FindPkgConfig)
|
||||
if(NOT PROJECT_NAME STREQUAL "OpenCV")
|
||||
include(FindPkgConfig)
|
||||
endif()
|
||||
|
||||
macro(add_backend backend_id cond_var)
|
||||
if(${cond_var})
|
||||
|
||||
Reference in New Issue
Block a user