[CMake] rdynamic and fpp flags failing

Jason Slemons slemons at cray.com
Mon Oct 5 15:14:38 EDT 2009


I have a question that is essentially what Levent Yilmaz(leventyilmaz at gmail.com) submitted on 'Thu May 15 22:31:36 EDT 2008'. I found his question on the web, its subject is the subject I am using. I am using pgi 9.0.4(which I believe is important) and I have a Fortran program called hello.f90(which does basically what you would think) and my CMakeLists.txt is just:

project(Hello Fortran)
cmake_minimum_required(VERSION 2.6)
add_executable(hello hello.f90)

and when I do cmake CMakeLists.txt I get two errors;

pgf95-Error-Unknown switch: -fpp
pgf95-Error-Unknown switch: -rdynamic

actually he only gets the second error. I am using cmake/2.8.0-rc2. I've attached the CMakeError.log. How can I get Cmake to suppress these two flags? Strange enough this works under cmake 2.6.4(meaning these two flags are not used).

-Jason Slemons
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091005/71f1f39b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeError.log
Type: application/octet-stream
Size: 1743 bytes
Desc: CMakeError.log
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091005/71f1f39b/attachment.obj>


More information about the CMake mailing list