Problems compiling parmetis with cmake

Hello,

In trying to build the library "parmetis" with cmake, I get the following error:

login3% make config
rm -rf build/Linux-x86_64
mkdir -p build/Linux-x86_64
cd build/Linux-x86_64 && cmake
/share/home/02188/eberroca/parmetis-4.0.2 -DCMAKE_VERBOSE_MAKEFILE=1
-DGKLIB_PATH= -DMETIS_PATH= -DCMAKE_C_COMPILER=mpicc
-DCMAKE_CXX_COMPILER=mpicxx
-- The C compiler identification is PGI
-- The CXX compiler identification is PGI
-- Check for working C compiler: /opt/apps/pgi7_2/mvapich/1.0.1/bin/mpicc
-- Check for working C compiler:
/opt/apps/pgi7_2/mvapich/1.0.1/bin/mpicc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/apps/pgi7_2/mvapich/1.0.1/bin/mpicxx
-- Check for working CXX compiler:
/opt/apps/pgi7_2/mvapich/1.0.1/bin/mpicxx -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: cmake version 2.8.7
Usage: /share/apps/cmake/2.8.7/bin/cmake -E [command] [arguments ...]
Available commands:
chdir dir cmd [args]... - run command in a given directory
compare_files file1 file2 - check if file1 is same as file2
copy file destination - copy file to destination (either file or
directory)
copy_directory source destination - copy directory 'source'
content to directory 'destination'
copy_if_different in-file out-file - copy file if input has changed
echo [string]... - displays arguments as text
echo_append [string]... - displays arguments as text but no new line
environment - display the current environment
make_directory dir - create a directory
md5sum file1 [...] - compute md5sum of files
remove [-f] file1 file2 ... - remove the file(s), use -f to force it
remove_directory dir - remove a directory and its contents
rename oldname newname - rename a file or directory (on one volume)
tar [cxt][vfz][cvfj] file.tar file/dir1 file/dir2 ... - create a tar archive
time command [args] ... - run command and return elapsed time
touch file - touch a file.
touch_nocreate file - touch a file but do not create it.
Available on UNIX only:
create_symlink old new - create a symbolic link new -> old

CMake Error at CMakeLists.txt:26 (include):
include could not find load file:

/GKlibSystem.cmake

CMake Error at CMakeLists.txt:36 (add_subdirectory):
add_subdirectory given source "/libmetis" which is not an existing
directory.

-- Configuring incomplete, errors occurred!
make: *** [config] Error 1

I went to the line 26 of CMakeList.txt and this is what I found:

include(${GKLIB_PATH}/GKlibSystem.cmake)

Which means that the variable GKLIB_PATH is not well defined. The
variable is set at the beginning of the file:

set(GKLIB_PATH METIS/GKlib CACHE PATH "path to GKlib")
set(METIS_PATH METIS CACHE PATH "path to METIS")

It seems as if cmake is not setting those variables correctly. Could
this be the problem? Could this file have bugs?. I don't see METIS
been defined anywhere in this file. Before I go on and modify things I
want to make sure nothing else is going on here. The version of cmake
is 2.8.7.

Thanks a lot for your time,
Eduardo.

RE: Solution is with gmake

The gnu make that you are using must be at least version 3.81
The problem was resolved when I moved from 3.80 to 3.82