Hello, I'm trying to compile C++ codes with IBM XL compilers.
I enabled Fortran in the main CMakeLists.txt enable_language (Fortran) then the default link inserts -lxlf90 -lxlf -lxlomp_ser Since my applications use openmp, it is necessary not to link these libraries. These libraries invalidate openmp environments at run time and make threads run serially. I tried to overwrite SET(MAKE_Fortran_IMPLICIT_LINK_LIBRARIES "xlf90_r") in my toolchain file but the three libraries are linked automatically. Is there any way to prevent this from happening? If I do not enable fortran by commenting out #enable_lanague(Fortran) and link the needed libraries by hand, compilation works but of course then I have to use very ad-hoc methods to compile fortran subroutines. Similar problems are encountered with autoconf/automake. I would appreciate anyone with experiences with XL compilers in handling the multi-language applications. Thanks in advance, Jeongnim _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake