Hi Brad,
Thank you very much for your quick response. Yeah I noticed too that for some reason Cmakes is assuming f95 to be a GNU compiler. In the file /cmake/Modules/CMakeDetermineFortranCompiler.cmake, I didn't see any reference to Absoft compilers, even though f90/f95 compilers are being listed as possible compilers. 1. Inorder to recognize the f95 compiler I did this : %f95 -v gave me Absoft 64-bit Fortran 95 9.0 with Service Pack 1 so perhaps 'Absoft' can be greped to recognize the compiler. I don't think it is derived from GNU compiler. 2. I also set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "") in my CMakeLists.txt, which made no difference to the error message. Thanks a lot for your help again. Regards, Venu EMAILING FOR THE GREATER GOOD Join me > Date: Mon, 31 Aug 2009 12:55:37 -0400 > From: brad.k...@kitware.com > To: gudimet...@hotmail.com > CC: cmake@cmake.org > Subject: Re: [CMake] Unable to run cmake using absoft f95 Fortran compiler > > venugopal gudimetla wrote: > > I am using CMake 2.6.4 on Linux 64 bit platform. We are using absoft f95 > > compiler. I am trying to build cgns3.0 which uses CMake for building the > > package. > > FYI, to my knowledge no one has ever used CMake with that compiler. > We need to teach CMake about the compiler's flags. > > > Now when I enable Fortran and try running cmake, I get the following > > error : > > > > -- The Fortran compiler identification is GNU > ^^^ > > Is the compiler derived from a GNU compiler? Somehow its preprocessor > claims that the compiler is GNU. Do you know if the compiler documents > a preprocessor symbol to identify it? > > > ERROR: Unrecognized arguments: -rdynamic > > > > could someone please help me how to circumvent this problem/error? I > > also tried setting > > set(CMAKE_SHARED_LIBRARY_Fortran_Flags "") but it didn't help me. > > The workaround is: > > set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "") > # ^^^^ > > > I also saw one similar problem which said that this problem occurs when > > the system has multiple Fortran compilers. Is it true? > > I don't think that has anything to do with it. > > -Brad
_______________________________________________ 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