Skip to content

Commit

Permalink
Update build.sh to follow cmake usage of SDL readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ymontmarin authored Feb 11, 2025
1 parent 3d83a62 commit c9b1c1e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions recipes/sdl3/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,12 @@ if [[ ${HOST} =~ .*darwin.* ]]; then
fi
fi

mkdir build
cd build

cmake .. \
${CMAKE_ARGS} \
cmake -S . -B build ${CMAKE_ARGS} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
-DSDL_INSTALL=ON \
$ADDITIONAL_OPTIONS

make
make install
cmake --build build --config Release

cmake --install build --config Release --prefix $PREFIX

0 comments on commit c9b1c1e

Please sign in to comment.