Skip to content

Commit

Permalink
* Added message to LD_LIBRARY_PATH output in base_build.sh to help de…
Browse files Browse the repository at this point in the history
…termine when cmake and mac are being used or not
  • Loading branch information
jredmondson authored and jredmondson committed Sep 15, 2023
1 parent 6357988 commit 801d602
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/linux/base_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2294,6 +2294,8 @@ if [ $ANDROID -eq 1 ]; then

fi

ECHO "EXPORTING ENVIRONMENT: CMAKE=$CMAKE, MAC=$MAC"

if [ $CMAKE -eq 1 ]; then

if [ $MAC -eq 0 ]; then
Expand Down Expand Up @@ -2323,12 +2325,14 @@ if [ $CMAKE -eq 1 ]; then
else # not CMAKE
if [ $MAC -eq 0 ]; then

echo "Configuring non-mac non-cmake..."
if grep -q LD_LIBRARY_PATH $HOME/.gams/env.sh ; then
sed -i 's@LD_LIBRARY_PATH=.*@LD_LIBRARY_PATH='"\$LD_LIBRARY_PATH"':'"\$MADARA_ROOT/lib"':'"\$GAMS_ROOT/lib"':'"\$VREP_ROOT"':'"\$CAPNP_ROOT/c++/.libs:\$SCRIMMAGE_GIT_ROOT/build/plugin_libs:\$SCRIMMAGE_GIT_ROOT/build/lib"'@' $HOME/.gams/env.sh
else
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$MADARA_ROOT/lib:\$GAMS_ROOT/lib:\$VREP_ROOT:\$CAPNP_ROOT/c++/.libs:\$SCRIMMAGE_GIT_ROOT/build/plugin_libs:\$SCRIMMAGE_GIT_ROOT/build/lib" >> $HOME/.gams/env.sh
fi
else
echo "Configuring mac non-cmake..."
if grep -q DYLD_LIBRARY_PATH $HOME/.gams/env.sh ; then
sed -i 's@DYLD_LIBRARY_PATH=.*@DYLD_LIBRARY_PATH='"\$DYLD_LIBRARY_PATH"':'"\$MADARA_ROOT/lib"':'"\$GAMS_ROOT/lib"':'"\$VREP_ROOT"':'"\$CAPNP_ROOT/c++/.libs"'@' $HOME/.gams/env.sh
else
Expand Down

0 comments on commit 801d602

Please # to comment.