Find the right gfortran libs
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Feb 2011 17:05:15 +0000 (17:05 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Feb 2011 17:05:15 +0000 (17:05 +0000)
cmake/CMakemacosx64.cmake

index 7f7632c..1e27b8e 100644 (file)
@@ -104,11 +104,11 @@ if( F77 MATCHES "g95")
   set(DYLIB ${SYSLIBS})
 
 else()
-  execute_process(COMMAND ${CMAKE_Fortran_COMPILER} -print-file-name=libgfortran.dylib
+
+  execute_process(COMMAND ${CMAKE_Fortran_COMPILER} -m64 -print-file-name=libgfortran.dylib
                   OUTPUT_VARIABLE _shlib
                   OUTPUT_STRIP_TRAILING_WHITESPACE)
-  execute_process(COMMAND ${CMAKE_Fortran_COMPILER} -print-file-name=libgfortranbegin.a
+  execute_process(COMMAND ${CMAKE_Fortran_COMPILER} -m64 -print-file-name=libgfortranbegin.a
                   OUTPUT_VARIABLE _alib
                   OUTPUT_STRIP_TRAILING_WHITESPACE)
   set( SYSLIBS "${SYSLIBS} -ldl ${_shlib} ${_alib}")