[CMake] CMake couldn't find 64 bit libraries with ifort + openmpi

2013-03-11 Thread rocwhite168
Dear CMake users, I've encountered a strange situation. When I "module load" Intel Fortran compiler ifort and the corresponding OpenMPI installation, CMake will look for libraries dl, nsl, and util in /usr/lib directory, but since the OS, ifort, and mpif90 are all 64 bit, it should have looked

Re: [CMake] How to specify precedence when using enable_language to search for compilers

2011-03-15 Thread rocwhite168
Hi again, I'm not sure if it is the time I posted this happened to be Sunday that no one has read it or we simply cannot specify a precedence to let cmake change its default sequence of searching for available compilers? Thanks, Roc On Fri, Mar 11, 2011 at 6:10 PM, rocwhite168 wrote:

[CMake] How to specify precedence when using enable_language to search for compilers

2011-03-11 Thread rocwhite168
Hi everyone, I wonder how I can specify precedence when using enable_language to search for compilers. For example, if my system has both ifort and gfortran installed, and I want to use ifort instead of the gfortran, how could I set up this? >From what I currently found, a work-around is to set C