check for cmake in /usr/local/cmake and use that for AOMP_CMAKE default.  This will not affect anyone setting AOMP_CMAKE
@@ -55,7 +55,11 @@ CUDAT=${CUDAT:-$CUDA/targets}
CUDAINCLUDE=${CUDAINCLUDE:-$CUDA/include}
CUDABIN=${CUDABIN:-$CUDA/bin}
+if [ -f /usr/local/cmake/bin/cmake ] ; then
+ AOMP_CMAKE=${AOMP_CMAKE:-/usr/local/cmake/bin/cmake}
+else
AOMP_CMAKE=${AOMP_CMAKE:-cmake}
+fi
AOMP_PROC=`uname -p`
if [ "$AOMP_PROC" == "unknown" ] ; then
AOMP_PROC=`uname -a | awk '{print $(NF-1)}'`
