mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: csh not unsetting old paraview/cmake environment (related to #281)
- On the first call, ParaView_DIR is unset and thus the clean-path fails with the warning "ParaView_DIR: Undefined variable." This looks messy, but is of no _major_ consequence since paraview doesn't need to be removed anyhow. The only slight risk is that the path to a third-party cmake might not be cleaned. - Patch as per Bruno's suggestion.
This commit is contained in:
@ -59,6 +59,7 @@ set cmake_version=cmake-system
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Clean the PATH
|
||||
if ( ! $?ParaView_DIR ) setenv ParaView_DIR
|
||||
set cleaned=`$WM_PROJECT_DIR/bin/foamCleanPath "$PATH" "$ParaView_DIR $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/cmake- $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/paraview-"`
|
||||
if ( $status == 0 ) setenv PATH $cleaned
|
||||
|
||||
|
||||
Reference in New Issue
Block a user