cpp11: check_all and run_cmake: convert c++98 -> c++11.
Brad Bell
3 years ago
37 | 37 |
# -----------------------------------------------------------------------------
|
38 | 38 |
addr_t_size_t='no'
|
39 | 39 |
verbose='no'
|
40 | |
standard='c++11'
|
|
40 |
standard='c++17'
|
41 | 41 |
profile_speed='no'
|
42 | 42 |
clang='no'
|
43 | 43 |
yes_adolc='yes'
|
|
90 | 90 |
verbose='yes'
|
91 | 91 |
;;
|
92 | 92 |
|
93 | |
--c++98)
|
94 | |
standard='c++98'
|
|
93 |
--c++11)
|
|
94 |
standard='c++11'
|
95 | 95 |
;;
|
96 | 96 |
|
97 | 97 |
--profile_speed)
|
|
176 | 176 |
esac
|
177 | 177 |
shift
|
178 | 178 |
done
|
179 | |
# ---------------------------------------------------------------------------
|
180 | |
if [ "$standard" == 'c++98' ]
|
181 | |
then
|
182 | |
if [ "$yes_adolc" == 'yes' ]
|
183 | |
then
|
184 | |
echo 'run_cmake.sh: --no_adolc required when --c++98 present'
|
185 | |
exit 1
|
186 | |
fi
|
187 | |
if [ "$yes_sacado" == 'yes' ]
|
188 | |
then
|
189 | |
echo 'run_cmake.sh: --no_sacado required when --c++98 present'
|
190 | |
exit 1
|
191 | |
fi
|
192 | |
if [ "$yes_cppadcg" == 'yes' ]
|
193 | |
then
|
194 | |
echo 'run_cmake.sh: --no_cppadcg required when --c++98 present'
|
195 | |
exit 1
|
196 | |
fi
|
197 | |
fi
|
198 | 179 |
# ---------------------------------------------------------------------------
|
199 | 180 |
if [ ! -e build ]
|
200 | 181 |
then
|