Skip to content

Commit

Permalink
try to fix MACOS compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Apr 29, 2024
1 parent 7fe61f7 commit cc3d950
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ include="-I./include"

case "$(uname -s)" in MINGW*)
# for windows
SFML_path='C:\SFML-2.5.1'
SFML_path='C:\SFML-2.6.1'
include="$include -I$SFML_path\include"
linker_dir="-L$SFML_path\lib"
esac

case "$(uname -s)" in Darwin*)
# for mac
SFML_path='/usr/local/Cellar/sfml/2.6.1'
include="$include -I$SFML_path/include"
linker_dir="-L$SFML_path/lib"
esac

units=$(find ./src -name "*.cpp")

set -e
Expand Down

0 comments on commit cc3d950

Please sign in to comment.