Skip to content

Commit

Permalink
Fix geogram superlu build warning on OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Apr 19, 2024
1 parent 20f801b commit f3b731d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geogram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ if (ENABLE_GEOGRAM)
ExternalProject_Add(GEOGRAM_BLD
URL "${CMAKE_CURRENT_SOURCE_DIR}/geogram"
BUILD_ALWAYS ${EXT_BUILD_ALWAYS} ${LOG_OPTS}
PATCH_COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/geogram.patch
PATCH_COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/geogram_cmake.patch
COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/geogram_superlu.patch
CMAKE_ARGS
${BUILD_TYPE_SPECIFIER}
-DBIN_DIR=${BIN_DIR}
Expand Down
File renamed without changes.
48 changes: 48 additions & 0 deletions geogram/geogram_superlu.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff -Naur geogram/src/lib/third_party/numerics/SUPERLU/cutil.c GEOGRAM_BLD/src/lib/third_party/numerics/SUPERLU/cutil.c
--- geogram/src/lib/third_party/numerics/SUPERLU/cutil.c 2024-04-19 17:13:22.947629009 -0400
+++ GEOGRAM_BLD/src/lib/third_party/numerics/SUPERLU/cutil.c 2024-04-19 17:13:53.726931559 -0400
@@ -474,7 +474,7 @@



-
+int
print_complex_vec(char *what, int n, complex *vec)
{
int i;
diff -Naur geogram/src/lib/third_party/numerics/SUPERLU/dutil.c GEOGRAM_BLD/src/lib/third_party/numerics/SUPERLU/dutil.c
--- geogram/src/lib/third_party/numerics/SUPERLU/dutil.c 2024-04-19 17:13:22.947629009 -0400
+++ GEOGRAM_BLD/src/lib/third_party/numerics/SUPERLU/dutil.c 2024-04-19 17:13:59.518801347 -0400
@@ -470,7 +470,7 @@



-
+int
print_double_vec(char *what, int n, double *vec)
{
int i;
diff -Naur geogram/src/lib/third_party/numerics/SUPERLU/sutil.c GEOGRAM_BLD/src/lib/third_party/numerics/SUPERLU/sutil.c
--- geogram/src/lib/third_party/numerics/SUPERLU/sutil.c 2024-04-19 17:13:22.947629009 -0400
+++ GEOGRAM_BLD/src/lib/third_party/numerics/SUPERLU/sutil.c 2024-04-19 17:14:20.190339229 -0400
@@ -470,7 +470,7 @@



-
+int
print_float_vec(char *what, int n, float *vec)
{
int i;
diff -Naur geogram/src/lib/third_party/numerics/SUPERLU/zutil.c GEOGRAM_BLD/src/lib/third_party/numerics/SUPERLU/zutil.c
--- geogram/src/lib/third_party/numerics/SUPERLU/zutil.c 2024-04-19 17:13:22.947629009 -0400
+++ GEOGRAM_BLD/src/lib/third_party/numerics/SUPERLU/zutil.c 2024-04-19 17:14:27.294181312 -0400
@@ -474,7 +474,7 @@



-
+int
print_doublecomplex_vec(char *what, int n, doublecomplex *vec)
{
int i;

0 comments on commit f3b731d

Please sign in to comment.