Re: [CMake] Compiling Fortran on IBMs XL

2017-06-08 Thread Matthias Redies
I found that by setting: set(CMAKE_EXE_LINKER_FLAGS "-qmkshrobj") I can include this fix for older verison. set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-qmkshrobj") Didn't actually have any effect on the linker flags. Kind regards Matthias Redies On 07.06.

[CMake] Compiling Fortran on IBMs XL

2017-06-07 Thread Matthias Redies
Hello, I am trying to compile my program using this CMake script: https://pastebin.com/zgJhbFhj with ifort or gfortran my script works fine, but with IBMs XL Fortran I get an error: > make -- A library with BLAS API found. -- A library with LAPACK API found. -- MKLROOT: -- IBM -- DEBUG Flag

[CMake] Forcing CMake to find static library

2017-06-09 Thread Matthias Redies
Hello, I am trying to force CMAKE to include a specific static lapack library, set through the environment variable $LAPACK_LIB: > ls $LAPACK_LIB libblas_extra.a libcblas.a liblapack.a liblapacke.a libtmglib.a > echo $LAPACK_LIB /bgsys/local/lapack/3.7.0/lib This is how I am trying to