File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,20 @@ EOF
105105echo done.
106106
107107if [[ ! " $ARGS $@ " =~ " -DCMAKE_BUILD_TYPE" ]]; then
108- cat << EOF
109-
108+ if [ -d ../.git ] ; then
109+ printf "
110110****
111- WARNING: do_cmake.sh now creates debug builds by default. Performance
112- may be severely affected. Please use -DCMAKE_BUILD_TYPE=RelWithDebInfo
111+ WARNING: do_cmake.sh now creates debug builds by default if .git exists.
112+ Performance may be severely affected. Please use -DCMAKE_BUILD_TYPE=RelWithDebInfo
113113if a performance sensitive build is required.
114114****
115- EOF
115+ "
116+ else
117+ printf "
118+ ****
119+ WARNING: do_cmake.sh now creates RelWithDebInfo builds by default when .git is absent.
120+ ****
121+ "
122+ fi
116123fi
117124
You can’t perform that action at this time.
0 commit comments