Skip to content

Commit 2af4dc7

Browse files
committed
Merge pull request opencv#7741 from alalek:cmake_remove_legacy_pkgconfig
2 parents 5cead19 + e5041ab commit 2af4dc7

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
@@ -447,10 +447,6 @@ endif(WIN32 AND NOT MINGW)
447447
# CHECK FOR SYSTEM LIBRARIES, OPTIONS, ETC..
448448
# ----------------------------------------------------------------------------
449449
if(UNIX)
450-
include(cmake/OpenCVFindPkgConfig.cmake OPTIONAL)
451-
include(CheckFunctionExists)
452-
include(CheckIncludeFile)
453-
454450
if(NOT APPLE)
455451
CHECK_INCLUDE_FILE(pthread.h HAVE_LIBPTHREAD)
456452
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)