vcpkg/ports/suitesparse/fix-install-suitesparse.patch
mmazaherit 56b27d1d00 -use metis library in vcpkg
-improved port script
2017-06-05 21:11:09 -04:00

17 lines
633 B
Diff

diff --git "a/SuiteSparse/CMakeLists.txt" "b/SuiteSparse/CMakeLists.txt"
index 7361363..8a48cf3 100644
--- "a/SuiteSparse/CMakeLists.txt"
+++ "b/SuiteSparse/CMakeLists.txt"
@@ -10,7 +10,11 @@ ENDIF(CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_BUILD_TYPE MATCHES "Debug")
IF (BUILD_METIS)
INCLUDE_DIRECTORIES("${METIS_SOURCE_DIR}/include")
ELSE (BUILD_METIS)
+ IF(USE_VCPKG_METIS)
+ INCLUDE_DIRECTORIES("${METIS_SOURCE_DIR}/include")
+ ELSE (USE_VCPKG_METIS)
ADD_DEFINITIONS(-DNPARTITION)
+ ENDIF(USE_VCPKG_METIS)
ENDIF ( BUILD_METIS)
# Disable COMPLEX numbers: disable it by default, since it causes problems in some platforms.