Fixed a bug in the IBM compiler options (-ffixed-form -> -qfixed).
authorjulie <julielangou@users.noreply.github.com>
Thu, 23 Dec 2010 00:50:18 +0000 (00:50 +0000)
committerjulie <julielangou@users.noreply.github.com>
Thu, 23 Dec 2010 00:50:18 +0000 (00:50 +0000)
- Chuck Atkins (Kitware)

CMAKE/CheckLAPACKCompilerFlags.cmake

index 8e1a2faebcafa2702dac67da7c618b25a00660b2..6d274f2e3bfae20f782682867a034337fa2acd49 100644 (file)
@@ -38,8 +38,8 @@ elseif( CMAKE_Fortran_COMPILER_ID STREQUAL "VisualAge" )
     set( FPE_EXIT TRUE )
   endif()
 
-  if( NOT ("${CMAKE_Fortran_FLAGS}" MATCHES "-ffixed-form") )
-    set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffixed_form"
+  if( NOT ("${CMAKE_Fortran_FLAGS}" MATCHES "-qfixed") )
+    set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qfixed"
          CACHE STRING "Flags for Fortran compiler." FORCE )
   endif()