[CMake] Cmake and ParMETIS

2014-04-07 Thread Pettey . Lucas
Hello, I am trying to build ParMETIS on a Cray XE6 that only uses static libraries. Every attempt at "make config" and "ccmake" results in the error below, even if I try to set CMAKE_EXE_LINKER_FLAGS to "-pie" and CMAKE_C_FLAGS to "-fPIE". I can't seem to find anyway to get rid of the "-rdynami

Re: [CMake] Linking intel (icpc/icc) compiled libraries with gnu (g++/gcc/ar) compiled targets

2014-01-28 Thread Pettey . Lucas
Do you have a line similar to target_link_libraries(foo.exe ${IntelCompilerLibrary_LIBRARIES})? Also check to see if IntelCompilerLibrary_LIBRARIES is being set correctly by having it print out in a message. I have had times where the entire SET needs the quotes: SET(IntelCompilerLibrary_LIBRAR

Re: [CMake] CMAKE OS X fortran bug?

2014-01-17 Thread Pettey . Lucas
Did you try ENABLE_LANGUAGE(Fortran)? As far as I know, all CMake references to Fortran only have the first letter uppercase. By having the entire name uppercase, CMake may think it is a new language and thus need to look for FORTRAN compilers and linkers. Lucas __

Re: [CMake] "find_package(MPI)" overriding "set(MPIEXEC)" in CmakeList.txt

2014-01-10 Thread Pettey . Lucas
ore Levinsen [yngve.levin...@gmail.com] Sent: Friday, January 10, 2014 5:33 AM To: Pettey . Lucas; cmake@cmake.org Subject: Re: [CMake] "find_package(MPI)" overriding "set(MPIEXEC)" in CmakeList.txt Hi, Did Den 09. jan. 2014 22:49, skrev Pettey . Lucas: > Hello, > > On a

[CMake] "find_package(MPI)" overriding "set(MPIEXEC)" in CmakeList.txt

2014-01-09 Thread Pettey . Lucas
Hello, On a Cray XE6, I am using find_package(MPI REQUIRED) in my CMakeLists.txt. It correctly finds all of the MPI stuff, except that it sets the MPIEXEC to the login node mpiexec command. I would like to override this behavior and set the MPIEXEC command to the "aprun" wrapper, but it is not

[CMake] FindMPI not looking in /usr?

2014-01-03 Thread Pettey . Lucas
Hello, I am running CMake 2.8.12 on a Mac OSX 10.8. The FindMPI.cmake module doesn't appear to accept that the mli libraries are in the /usr/lib directory. I get the error message pasted below. It would seem that mlicc --showme yields "gcc -lmpi -lm". The module then tries to find the libraries

[CMake] No MPIEXEC option from FindMPI

2013-12-18 Thread Pettey . Lucas
Hello, On our Cray XE6 system, CMake is not giving advanced options for MPIEXEC, max processors, etc after running the FindMPI module. The FindMPI module does identify the correct MPI_XXX_COMPILERs, but doe not even give a NOT_FOUND for MPIEXEC and other MPI runs parameters necessary for CTest

[CMake] CMAKE_SYSTEM_NAME Returning Blank??

2013-10-17 Thread Pettey . Lucas
Hello, I am trying to set some default variables based on the platform being used. I am trying the following syntax: IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") # Mac OS X specific code SET(OperatingSystem "Mac OS X") message(STATUS "WORKS OK") IF(${CMAKE_SYSTEM_PROCESSOR } MATCHES

[CMake] Building CMake on Cray XE6

2013-10-09 Thread Pettey . Lucas
Hello! I am trying to build Cmake 2.8.11.2 on a Cray XE6. I am using the GCC 4.8.0 compiler. I have tried both the ./bootstrap and CMake 2.8.4 to generate the makefile. I get the same error: Linking CXX executable ../bin/ccmake cd /u/lpettey/cmake-2.8.11.2/Source && /lustre/home1/local/usp/PET

[CMake] CMake and MPIF90

2013-04-25 Thread Pettey . Lucas
Hello, I am getting errors when I execute a simple "hello World" mpi program compiled using cmake. I could not get the program to compile using various forms of FIND_PACKAGE(MPI REQUIRED), INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH}), TARGET_LINK_LIBRARIES(executable ${MPI_LIBRARIES}) and filling