From 7d6f2f539a6f8cb40e63adbef8f5f9193806d226 Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Sun, 25 Nov 2018 12:44:53 +0000 Subject: math/plplot: prepare for cmake-3.13 PR: 233411 Reported by: antoine --- .../plplot/files/patch-cmake_modules_pkg-config.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 math/plplot/files/patch-cmake_modules_pkg-config.cmake (limited to 'math/plplot/files/patch-cmake_modules_pkg-config.cmake') 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) -- cgit v1.2.3