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 9af55b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ 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*)
SFML_path='/opt/homebrew/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 9af55b0

Please sign in to comment.