summaryrefslogtreecommitdiffstats
path: root/Modules/FindPkgConfig.cmake
diff options
context:
space:
mode:
authorShin-ya Murakami <murashin@gfd-dennou.org>2017-08-06 07:32:44 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-07 14:51:16 (GMT)
commit07a4be0d9cf1a628db7e65ecae834a0c8e9d4278 (patch)
treebce0c03087202bc28602fb5885741b58704e00fb /Modules/FindPkgConfig.cmake
parent8d189ebd14c88d8b73ac702e4ff3ba61366ebdc3 (diff)
downloadCMake-07a4be0d9cf1a628db7e65ecae834a0c8e9d4278.zip
CMake-07a4be0d9cf1a628db7e65ecae834a0c8e9d4278.tar.gz
CMake-07a4be0d9cf1a628db7e65ecae834a0c8e9d4278.tar.bz2
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.
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r--Modules/FindPkgConfig.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index 8ac1691..76afa8a 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -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")