ParaViewFunctions: corrected addCMakeVariable for multiple arguments

This commit is contained in:
Chris Greenshields
2017-07-24 14:05:46 +01:00
parent dbf61d693c
commit a2463db88a

View File

@ -172,14 +172,12 @@ checkVersion()
# #
addCMakeVariable() addCMakeVariable()
{ {
while [ -n "$1" ] for var in $*
do do
CMAKE_VARIABLES="$CMAKE_VARIABLES -D$1" CMAKE_VARIABLES="$CMAKE_VARIABLES -D$var"
shift
done done
} }
# #
# Verbose makefiles # Verbose makefiles
# #