diff options
author | tcberner <tcberner@FreeBSD.org> | 2018-11-25 20:44:53 +0800 |
---|---|---|
committer | tcberner <tcberner@FreeBSD.org> | 2018-11-25 20:44:53 +0800 |
commit | c6c00e70a69ce4c155304aa2818e703271fb0975 (patch) | |
tree | 34059bee76626c0928b2ed03e8226487940f2689 /math | |
parent | 5a323d33254cb7f95e56fd07ed77663fe5ceee6c (diff) | |
download | freebsd-ports-gnome-c6c00e70a69ce4c155304aa2818e703271fb0975.tar.gz freebsd-ports-gnome-c6c00e70a69ce4c155304aa2818e703271fb0975.tar.zst freebsd-ports-gnome-c6c00e70a69ce4c155304aa2818e703271fb0975.zip |
math/plplot: prepare for cmake-3.13
PR: 233411
Reported by: antoine
Diffstat (limited to 'math')
-rw-r--r-- | math/plplot/files/patch-cmake_modules_pkg-config.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/math/plplot/files/patch-cmake_modules_pkg-config.cmake b/math/plplot/files/patch-cmake_modules_pkg-config.cmake new file mode 100644 index 000000000000..f8c26a8037db --- /dev/null +++ b/math/plplot/files/patch-cmake_modules_pkg-config.cmake @@ -0,0 +1,19 @@ +The *internal* _pkg_check_modules_internal macro of cmake gained another +parameter in cmake-3.13. + +https://gitlab.kitware.com/cmake/cmake/commit/7aa26cf0e9319be3f7785763eb3699823453eb60 + +--- cmake/modules/pkg-config.cmake.orig 2018-11-25 12:01:15 UTC ++++ cmake/modules/pkg-config.cmake +@@ -122,8 +122,10 @@ macro(pkg_check_pkgconfig _package _include_DIR _link_ + _pkg_check_modules_internal(0 0 ${_prefix} "${_package}") + elseif(CMAKE_VERSION VERSION_LESS "3.6") + _pkg_check_modules_internal(0 0 0 0 ${_prefix} "${_package}") +- else(CMAKE_VERSION VERSION_LESS "3.1") ++ elseif(CMAKE_VERSION VERSION_LESS "3.13") + _pkg_check_modules_internal(0 0 0 0 0 ${_prefix} "${_package}") ++ else(CMAKE_VERSION VERSION_LESS "3.1") ++ _pkg_check_modules_internal(0 0 0 0 0 0 ${_prefix} "${_package}") + endif(CMAKE_VERSION VERSION_LESS "3.1") + + if(${_prefix}_FOUND) |