When you:<br>
SET(CMAKE_Fortran_FLAGS "-fno-backslash")<br><br>it does not affect the cache... it is only a local override of the cache value.<br><br>It should take effect in the generated project/make files, though.<br><br>
If you want to see it in the cache editor, you have to use "FORCE" with SET. (Although if you do that, you cannot change it from the cache editor.....)<br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">
On Thu, May 1, 2008 at 1:04 PM, Convey Christian J NPRI <<a href="mailto:ConveyCJ@npt.nuwc.navy.mil">ConveyCJ@npt.nuwc.navy.mil</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm using cmake version 2.7-20080501, and I'm having trouble setting CMAKE_Fortran_FLAGS. Any suggestions about what I'm doing wrong?<br>
<br>
Here's my CMakeLists.txt file:<br>
<br>
SET(CMAKE_Fortran_COMPILER "/usr/bin/f77")<br>
SET(CMAKE_Fortran_FLAGS "-fno-backslash")<br>
PROJECT(CASS-4.1 Fortran)<br>
ADD_SUBDIRECTORY(bistatic)<br>
ADD_SUBDIRECTORY(latex)<br>
<br>
<br>
When I run cmake, and then use ccmake to inspect the cache file, I find that:<br>
- I did successfully force the compiler to be f77 rahter than f95.<br>
- The variable CMAKE_Fortran_FLAGS is still blank.<br>
<br>
I get this behavior even after removing any extant CMakeCache.txt files and CMakeFiles directories.<br>
<br>
Thanks for any suggestions.<br>
<br>
- Christian<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>