<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Hi Brad,<br><br>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.<br><br><br>1. Inorder to recognize the f95 compiler I did this :<br><br>%f95 -v gave me <br>Absoft 64-bit Fortran 95 9.0 with Service Pack 1<br><br>so perhaps 'Absoft' can be greped to recognize the compiler. I don't think it is derived from GNU compiler.<br><br>2. I also set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "") in my CMakeLists.txt, which made no difference to the error message.<br><br><br>Thanks a lot for your help again.<br><br>Regards,<br>Venu<br><br><div></div><br><br><br><br><table style="border-top: 1px solid black; font-weight: bold; font-family: 'Segoe UI',Tahoma,san-serif;"><tbody><tr><td><a href="http://im.live.com/Messenger/IM/Home/?source=EML_WLHM_GreaterGood" style="font-size: 9pt; color: rgb(1, 132, 203); text-decoration: none;"><img style="border-style: none;" src="http://gfx1.hotmail.com/mail/w3/ltr/i_charity.gif" alt="i'm"> EMAILING FOR THE GREATER GOOD<br><span style="padding: 0px 24px; font-size: 8pt; color: rgb(63, 181, 85); text-decoration: underline;">Join me</span></a></td></tr></tbody></table><br><br>> Date: Mon, 31 Aug 2009 12:55:37 -0400<br>> From: brad.king@kitware.com<br>> To: gudimetlav@hotmail.com<br>> CC: cmake@cmake.org<br>> Subject: Re: [CMake] Unable to run cmake using absoft f95 Fortran compiler<br>> <br>> venugopal gudimetla wrote:<br>> > I am using CMake 2.6.4 on Linux 64 bit platform. We are using absoft f95<br>> > compiler. I am trying to build cgns3.0 which uses CMake for building the<br>> > package.<br>> <br>> FYI, to my knowledge no one has ever used CMake with that compiler.<br>> We need to teach CMake about the compiler's flags.<br>> <br>> > Now when I enable Fortran and try running cmake, I get the following<br>> > error :<br>> > <br>> > -- The Fortran compiler identification is GNU<br>> ^^^<br>> <br>> Is the compiler derived from a GNU compiler? Somehow its preprocessor<br>> claims that the compiler is GNU. Do you know if the compiler documents<br>> a preprocessor symbol to identify it?<br>> <br>> > ERROR: Unrecognized arguments: -rdynamic<br>> > <br>> > could someone please help me how to circumvent this problem/error? I<br>> > also tried setting<br>> > set(CMAKE_SHARED_LIBRARY_Fortran_Flags "") but it didn't help me.<br>> <br>> The workaround is:<br>> <br>> set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "")<br>> # ^^^^<br>> <br>> > I also saw one similar problem which said that this problem occurs when<br>> > the system has multiple Fortran compilers. Is it true?<br>> <br>> I don't think that has anything to do with it.<br>> <br>> -Brad<br></body>
</html>