Skip to content

Commit 2e7f099

Browse files
agudysAdam Gudyś
and
Adam Gudyś
authored
macOS compilation fix (#28)
Co-authored-by: Adam Gudyś <[email protected]>
1 parent 7b109d4 commit 2e7f099

File tree

3 files changed

+15
-71
lines changed

3 files changed

+15
-71
lines changed

makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,19 @@ else
8080
endif
8181
endif
8282

83+
84+
85+
CMAKE_OSX_SYSROOT_FLAG =
86+
ifeq ($(uname_S),Darwin)
87+
SDK_PATH := $(shell $(CXX) -v 2>&1 | grep -- '--with-sysroot' | sed -E 's/.*--with-sysroot=([^ ]+).*/\1/')
88+
CMAKE_OSX_SYSROOT_FLAG := -DCMAKE_OSX_SYSROOT=$(SDK_PATH)
89+
endif
90+
8391
ifeq ($(LEIDEN), true)
8492
igraph:
8593
mkdir libs/igraph/build
86-
cmake -S libs/igraph -B libs/igraph/build
87-
cmake -S libs/igraph -B libs/igraph/build
94+
cmake $(CMAKE_OSX_SYSROOT_FLAG) -DIEEE754_DOUBLE_ENDIANNESS_MATCHES=TRUE -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX) -S libs/igraph -B libs/igraph/build
95+
cmake $(CMAKE_OSX_SYSROOT_FLAG) -DIEEE754_DOUBLE_ENDIANNESS_MATCHES=TRUE -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX) -S libs/igraph -B libs/igraph/build
8896
cmake --build libs/igraph/build
8997
else
9098
igraph:

makefile_no_mimalloc

-67
This file was deleted.

src/version.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
//
99
// *******************************************************************************************
1010

11-
#define VERSION "1.1.3"
12-
#define DATE "2024-10-21"
11+
#define VERSION "1.1.4"
12+
#define DATE "2024-11-06"
1313

1414

1515
/********* Version history *********
1616
17+
1.1.4 (2024-11-06)
18+
* macOS compilation fix: SDK setting for igraph.
19+
1720
1.1.3 (2024-10-21)
1821
* Added `--version` switch.
1922

0 commit comments

Comments
 (0)