Commit dae081d2 authored by hkrishna's avatar hkrishna

only initializing build_visit variables if the module is enabled

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@19884 18c085ea-50e0-402c-830e-de6fd14e8384
parent fc726cb6
......@@ -546,6 +546,13 @@ function initialize_module_variables
info "initializing module variables"
for (( bv_i=0; bv_i<${#reqlibs[*]}; ++bv_i ))
do
$"bv_${reqlibs[$bv_i]}_is_enabled"
#if not enabled then skip
if [[ $? == 0 ]]; then
continue
fi
declare -F "bv_${reqlibs[$bv_i]}_initialize_vars" &>/dev/null
if [[ $? == 0 ]]; then
......@@ -556,6 +563,13 @@ function initialize_module_variables
for (( bv_i=0; bv_i<${#optlibs[*]}; ++bv_i ))
do
$"bv_${optlibs[$bv_i]}_is_enabled"
#if not enabled then skip
if [[ $? == 0 ]]; then
continue
fi
declare -F "bv_${optlibs[$bv_i]}_initialize_vars" &>/dev/null
if [[ $? == 0 ]]; then
......
Markdown is supported
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