diff --git a/Tools/scripts/build-jsbsim.sh b/Tools/scripts/build-jsbsim.sh index eaa6ed7aed..a6ba075a1f 100755 --- a/Tools/scripts/build-jsbsim.sh +++ b/Tools/scripts/build-jsbsim.sh @@ -20,4 +20,10 @@ else cmake -DCMAKE_CXX_FLAGS_RELEASE="-O3 -march=native -mtune=native" -DCMAKE_C_FLAGS_RELEASE="-O3 -march=native -mtune=native" -DCMAKE_BUILD_TYPE=Release .. make -j2 fi + +if [[ ! -n $(echo $PATH | grep jsbsim) ]]; then + echo "Add the JSBSim executable to your PATH using - export PATH=\$PATH:~/jsbsim/build/src" + echo "Add the above command to ~/.bashrc to automatically set the path everytime a new terminal is launched" +fi + echo "---------- $0 end ----------"