mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-10 07:40:03 -06:00
FindPkgConfig: On FreeBSD search in libdata/pkgconfig
The pkgconfig dir is placed at `${PREFIX}/libdata/pkgconfig` on FreeBSD
instead of `${PREFIX}/lib/pkgconfig`, where `${PREFIX}` is `/usr/local`
as default.
This commit is contained in:
committed by
Brad King
parent
8d189ebd14
commit
07a4be0d9c
@@ -323,6 +323,9 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
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 "lib/pkgconfig")
|
||||||
list(APPEND _lib_dirs "share/pkgconfig")
|
list(APPEND _lib_dirs "share/pkgconfig")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user