Skip to content
Snippets Groups Projects
Commit 97910c2c authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: only set ParaView_MAJOR by default if not already set

parent 08f10e8e
No related merge requests found
...@@ -62,7 +62,7 @@ case "$ParaView_VERSION" in ...@@ -62,7 +62,7 @@ case "$ParaView_VERSION" in
;; ;;
*) *)
ParaView_MAJOR=`echo $ParaView_VERSION | sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` [ -z ${ParaView_MAJOR} ] && ParaView_MAJOR=`echo $ParaView_VERSION | sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
;; ;;
esac esac
export ParaView_MAJOR export ParaView_MAJOR
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment