Skip to content

Commit e5041ab

Browse files
committed
cmake: remove outdated pkg-config module
1 parent ac118ae commit e5041ab

File tree

3 files changed

+7
-369
lines changed

3 files changed

+7
-369
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,6 @@ endif(WIN32 AND NOT MINGW)
445445
# CHECK FOR SYSTEM LIBRARIES, OPTIONS, ETC..
446446
# ----------------------------------------------------------------------------
447447
if(UNIX)
448-
include(cmake/OpenCVFindPkgConfig.cmake OPTIONAL)
449-
include(CheckFunctionExists)
450-
include(CheckIncludeFile)
451-
452448
if(NOT APPLE)
453449
CHECK_INCLUDE_FILE(pthread.h HAVE_LIBPTHREAD)
454450
if(ANDROID)

cmake/OpenCVFindPkgConfig.cmake

Lines changed: 0 additions & 365 deletions
This file was deleted.

cmake/OpenCVUtils.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
include(CheckFunctionExists)
2+
include(CheckIncludeFile)
3+
4+
if(UNIX)
5+
find_package(PkgConfig)
6+
endif()
7+
18
# Search packages for host system instead of packages for target system
29
# in case of cross compilation thess macro should be defined by toolchain file
310
if(NOT COMMAND find_host_package)

0 commit comments

Comments
 (0)