Skip to content

Commit

Permalink
macOS compilation fix (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Gudyś <[email protected]>
  • Loading branch information
agudys and Adam Gudyś authored Nov 7, 2024
1 parent 7b109d4 commit 2e7f099
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 71 deletions.
12 changes: 10 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,19 @@ else
endif
endif



CMAKE_OSX_SYSROOT_FLAG =
ifeq ($(uname_S),Darwin)
SDK_PATH := $(shell $(CXX) -v 2>&1 | grep -- '--with-sysroot' | sed -E 's/.*--with-sysroot=([^ ]+).*/\1/')
CMAKE_OSX_SYSROOT_FLAG := -DCMAKE_OSX_SYSROOT=$(SDK_PATH)
endif

ifeq ($(LEIDEN), true)
igraph:
mkdir libs/igraph/build
cmake -S libs/igraph -B libs/igraph/build
cmake -S libs/igraph -B libs/igraph/build
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
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
cmake --build libs/igraph/build
else
igraph:
Expand Down
67 changes: 0 additions & 67 deletions makefile_no_mimalloc

This file was deleted.

7 changes: 5 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
//
// *******************************************************************************************

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


/********* Version history *********
1.1.4 (2024-11-06)
* macOS compilation fix: SDK setting for igraph.
1.1.3 (2024-10-21)
* Added `--version` switch.
Expand Down

0 comments on commit 2e7f099

Please sign in to comment.