mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 10:25:05 +08:00
56b27d1d00
-improved port script
17 lines
633 B
Diff
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.
|