Skip to content

Commit da89343

Browse files
authored
use -DCITRON_BUILD_TYPE={Nightly,Stable} (#87)
1 parent 2c86717 commit da89343

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

get-dependencies.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ git clone --recursive "https://git.citron-emu.org/citron/emulator.git" ./citron
8787

8888
mkdir ./build
8989
cd ./build
90-
cmake .. -GNinja \
90+
set -- \
91+
-GNinja \
9192
-DCMAKE_BUILD_TYPE=Release \
9293
-DCMAKE_INSTALL_PREFIX=/usr \
9394
-DUSE_SYSTEM_QT=ON \
@@ -103,6 +104,14 @@ git clone --recursive "https://git.citron-emu.org/citron/emulator.git" ./citron
103104
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
104105
-DCMAKE_C_FLAGS="$ARCH_FLAGS" \
105106
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS -Wno-error -Wno-template-body -w"
107+
108+
if [ "$DEVEL" = 'true']; then
109+
set -- "$@" -DCITRON_BUILD_TYPE=Nightly
110+
else
111+
set -- "$@" -DCITRON_BUILD_TYPE=Stable
112+
fi
113+
114+
cmake ../ "$@"
106115
ninja
107116
sudo ninja install
108117
echo "$VERSION" >~/version

0 commit comments

Comments
 (0)