From fc072f48d6e1c4a40b49aaf48b46b977c6fee960 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 18 Oct 2011 22:35:40 +0100 Subject: [PATCH] etc file sourcing fix --- etc/settings.csh | 2 +- etc/settings.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/settings.csh b/etc/settings.csh index 4d2f705b7..16f5be458 100644 --- a/etc/settings.csh +++ b/etc/settings.csh @@ -425,7 +425,7 @@ endif # cmake # ~~~~~ -if ( $?CMAKE_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-2.8.5 ) then +if ( $?CMAKE_SYSTEM == 0 && -e "$WM_THIRD_PARTY_DIR"/packages/cmake-2.8.5/platforms/$WM_OPTIONS ) then _foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.5/platforms/$WM_OPTIONS/etc/cmake-2.8.5.csh endif diff --git a/etc/settings.sh b/etc/settings.sh index 75b72b640..2bf9dbd94 100644 --- a/etc/settings.sh +++ b/etc/settings.sh @@ -480,7 +480,7 @@ export MPI_BUFFER_SIZE # Load cmake # ~~~~~~~~~~ -[ -z "$CMAKE_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/cmake-2.8.5 ] && { +[ -z "$CMAKE_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/cmake-2.8.5/platforms/$WM_OPTIONS ] && { _foamSource $WM_THIRD_PARTY_DIR/packages/cmake-2.8.5/platforms/$WM_OPTIONS/etc/cmake-2.8.5.sh } [ "$FOAM_VERBOSE" -a "$PS1" ] && echo " CMAKE_DIR is initialized to: $CMAKE_DIR"