mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-06 01:27:49 +08:00
[metis] Fix linux build error. (#7299)
This commit is contained in:
parent
ab0ca36d97
commit
56f3f4535e
@ -1,4 +1,4 @@
|
|||||||
Source: metis
|
Source: metis
|
||||||
Version: 5.1.0-3
|
Version: 5.1.0-4
|
||||||
Homepage: https://glaros.dtc.umn.edu/gkhome/metis/metis/overview
|
Homepage: https://glaros.dtc.umn.edu/gkhome/metis/metis/overview
|
||||||
Description: Serial Graph Partitioning and Fill-reducing Matrix Ordering
|
Description: Serial Graph Partitioning and Fill-reducing Matrix Ordering
|
||||||
|
14
ports/metis/fix-linux-build-error.patch
Normal file
14
ports/metis/fix-linux-build-error.patch
Normal file
@ -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)
|
@ -21,6 +21,7 @@ vcpkg_extract_source_archive_ex(
|
|||||||
fix-runtime-install-destination.patch
|
fix-runtime-install-destination.patch
|
||||||
fix-metis-vs14-math.patch
|
fix-metis-vs14-math.patch
|
||||||
fix-gklib-vs14-math.patch
|
fix-gklib-vs14-math.patch
|
||||||
|
fix-linux-build-error.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
|
Loading…
Reference in New Issue
Block a user