diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-07-17 15:25:13 -0700 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-07-17 15:25:13 -0700 |
| commit | 56f3f4535e18f04fb7995472f235559f31f55356 (patch) | |
| tree | da061e24eb00a08dc92a44fbb567e0c0b20494d8 | |
| parent | ab0ca36d9721e1c9138eba6a0c3d1a2b05deb186 (diff) | |
| download | vcpkg-56f3f4535e18f04fb7995472f235559f31f55356.tar.gz vcpkg-56f3f4535e18f04fb7995472f235559f31f55356.zip | |
[metis] Fix linux build error. (#7299)
| -rw-r--r-- | ports/metis/CONTROL | 2 | ||||
| -rw-r--r-- | ports/metis/fix-linux-build-error.patch | 14 | ||||
| -rw-r--r-- | ports/metis/portfile.cmake | 1 |
3 files changed, 16 insertions, 1 deletions
diff --git a/ports/metis/CONTROL b/ports/metis/CONTROL index 6db70e599..02f5eb9e1 100644 --- a/ports/metis/CONTROL +++ b/ports/metis/CONTROL @@ -1,4 +1,4 @@ Source: metis
-Version: 5.1.0-3
+Version: 5.1.0-4
Homepage: https://glaros.dtc.umn.edu/gkhome/metis/metis/overview
Description: Serial Graph Partitioning and Fill-reducing Matrix Ordering
diff --git a/ports/metis/fix-linux-build-error.patch b/ports/metis/fix-linux-build-error.patch new file mode 100644 index 000000000..b3563a881 --- /dev/null +++ b/ports/metis/fix-linux-build-error.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e94f050..b9613a7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,8 @@
+ cmake_minimum_required(VERSION 2.8)
+ project(METIS)
+
+-set(GKLIB_PATH "GKlib" CACHE PATH "path to GKlib")
++set(GKLIB_PATH "${CMAKE_SOURCE_DIR}/GKlib" CACHE PATH "path to GKlib")
++
+ set(SHARED FALSE CACHE BOOL "build a shared library")
+
+ set(METIS_INSTALL TRUE)
diff --git a/ports/metis/portfile.cmake b/ports/metis/portfile.cmake index 4f8d4520d..7a7f575a6 100644 --- a/ports/metis/portfile.cmake +++ b/ports/metis/portfile.cmake @@ -21,6 +21,7 @@ vcpkg_extract_source_archive_ex( fix-runtime-install-destination.patch
fix-metis-vs14-math.patch
fix-gklib-vs14-math.patch
+ fix-linux-build-error.patch
)
vcpkg_configure_cmake(
|
