Merge topic 'FindPkgConfig-freebsd-pkgconfig-dir'

07a4be0d FindPkgConfig: On FreeBSD search in `libdata/pkgconfig`

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1108
This commit is contained in:
Brad King 2017-08-08 13:23:31 +00:00 committed by Kitware Robot
commit 3ce807f392

View File

@ -323,6 +323,9 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma
endif()
endif()
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND NOT CMAKE_CROSSCOMPILING)
list(APPEND _lib_dirs "libdata/pkgconfig")
endif()
list(APPEND _lib_dirs "lib/pkgconfig")
list(APPEND _lib_dirs "share/pkgconfig")