diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2018-11-25 12:44:53 +0000 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2018-11-25 12:44:53 +0000 |
commit | 7d6f2f539a6f8cb40e63adbef8f5f9193806d226 (patch) | |
tree | 34059bee76626c0928b2ed03e8226487940f2689 /math/plplot | |
parent | 2a58a889cbf4aaf06132bbc5356819035b6698e2 (diff) | |
download | ports-7d6f2f539a6f8cb40e63adbef8f5f9193806d226.tar.gz ports-7d6f2f539a6f8cb40e63adbef8f5f9193806d226.zip |
math/plplot: prepare for cmake-3.13
PR: 233411
Reported by: antoine
Notes
Notes:
svn path=/head/; revision=485857
Diffstat (limited to 'math/plplot')
-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) |