Skip to content

Commit c6fec63

Browse files
committed
Update minimum macOS version to successfully build FLTK on Intel Mac
1 parent e86f85c commit c6fec63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

BUILD.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
Change to the top directory of the FLTK source (the one containing `configure`) and build FLTK using the command line:
1515

16-
MIN_MAC_VERSION=13.0
16+
MIN_MAC_VERSION=10.15
1717
NUM_CORES=$(sysctl -n hw.perflevel0.physicalcpu 2>/dev/null || sysctl -n hw.physicalcpu)
1818
./configure CFLAGS="-mmacosx-version-min=$MIN_MAC_VERSION" CXXFLAGS="-mmacosx-version-min=$MIN_MAC_VERSION" LDFLAGS="-mmacosx-version-min=$MIN_MAC_VERSION" --enable-localzlib
1919
make -j$NUM_CORES
@@ -28,7 +28,7 @@ Adapt the paths to your FLTK builds in `CMakeLists.txt` and build the applicatio
2828
mkdir -p build && cd build
2929
NUM_CORES=$(sysctl -n hw.perflevel0.physicalcpu 2>/dev/null || sysctl -n hw.physicalcpu)
3030
rm -rf *
31-
cmake -DFLTKDIR="/Users/sf/Documents/Builds/FLTK/fltk-1.4.3" -DMACOS_VERSION=13.0 ..
31+
cmake -DFLTKDIR="/Users/sf/Documents/Builds/FLTK/fltk-1.4.3" -DMACOS_VERSION=$MIN_MAC_VERSION ..
3232
cmake --build . -- -j$NUM_CORES
3333

3434

0 commit comments

Comments
 (0)