Re: [CMake] CheckFortranSourceCompiles alternative for cmake 2.8.12

2016-02-23 Thread victor sv
ce. Best regards, Víctor 2016-02-23 12:46 GMT+01:00 victor sv : > Thanks Pter! > > Is the solution I was looking for. Great, it works as expected! :) > > > 2016-02-23 12:31 GMT+01:00 Petr Kmoch : > >> Hi Victor, >> >> have a look at the try_compil

[CMake] CheckFortranSourceCompiles alternative for cmake 2.8.12

2016-02-23 Thread victor sv
Hi all, I've seen that in CMake 3.0 appeared the nice CheckFortranSourceCompiles feature. Currently, common SO's like Ubuntu 14 includes CMake 2.8.12.2, but not CMake 3.0 or higher. I would like to check if a very small Fortran test program compiles using CMake 2.8.12.2, is this possible? how can

Re: [CMake] CheckFortranSourceCompiles alternative for cmake 2.8.12

2016-02-23 Thread victor sv
signature (the one which takes SOURCES). > > Petr > > On Tue, Feb 23, 2016 at 11:56 AM, victor sv wrote: > >> Hi all, >> >> I've seen that in CMake 3.0 appeared the nice CheckFortranSourceCompiles >> feature. >> >> Currently, common SO'

[CMake] How to know the MPI Fortran compiler vendor

2016-02-22 Thread victor sv
Hi all, we need to force some compilation flags for a library compiled with the MPI_Fortran_COMPILER provided by find_pakage. With the CMAKE_Fortran_COMPILER we can ask for the compiler vendor checking the CMAKE_Fortran_COMPILER_ID variable. There is a way to do the same with MPI_Fortran_COMPILE

Re: [CMake] CheckLibraryExists behaviour with different compilers

2015-04-20 Thread victor sv
ing on the compiler? Thanks in advance. Víctor. 2015-04-20 12:57 GMT+02:00 victor sv : > Ok Nils, > > thanks for your help :) > > Best regards, > Víctor. > > 2015-04-20 12:33 GMT+02:00 Nils Gladitz : > >> On 04/20/2015 12:28 PM, victor sv wrote: >> >

Re: [CMake] CheckLibraryExists behaviour with different compilers

2015-04-20 Thread victor sv
Ok Nils, thanks for your help :) Best regards, Víctor. 2015-04-20 12:33 GMT+02:00 Nils Gladitz : > On 04/20/2015 12:28 PM, victor sv wrote: > >> After googling and reading this: >> >> >> http://www.opal-rt.com/kb-article/undefined-reference-intel-fast-memset

Re: [CMake] CheckLibraryExists behaviour with different compilers

2015-04-20 Thread victor sv
with Intel compilers and it works too. There is something that I'm not well understanding ... If I build a static library, even with Intel compilers, shouldn't this library contain all the needed symbols? Thanks again :) Víctor 2015-04-20 11:55 GMT+02:00 Ni

[CMake] CheckLibraryExists behaviour with different compilers

2015-04-20 Thread victor sv
Hello all, i'm using CMake 2.8.12.2 and trying to search a symbol inside METIS library with: CHECK_LIBRARY_EXISTS(metis METIS_SetDefaultOptions ${METIS_PATH} HAVE_METIS_SETDEFAULTOPTIONS) If METIS library was compiled with Intel compilers and i build my project with the same compilers CMake

Re: [CMake] Check_library_exists don't found a function in a static library

2015-03-13 Thread victor sv
:00 victor sv : > Hello all, > > I'm a newbie using CMake and I'm trying to migrate the compilation of a > fortran project to CMake. > > I'm trying to detect the METIS library with find_library(). Inside my > FindMETIS.cmake I want to check the existence of some fu

[CMake] Check_library_exists don't found a function in a static library

2015-03-10 Thread victor sv
Hello all, I'm a newbie using CMake and I'm trying to migrate the compilation of a fortran project to CMake. I'm trying to detect the METIS library with find_library(). Inside my FindMETIS.cmake I want to check the existence of some functions to set the library version with: CHECK_LIBRARY_EXISTS