From ecd8414757368f45152f6e3e4841a5b3715fa2d3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 29 Nov 2011 15:13:47 -0500 Subject: Fortran: Detect pointer size in gfortran on MinGW Use __SIZEOF_POINTER__ which the GNU Fortran compiler defines at least on 64-bit MinGW. Assume default size 4 on MinGW if gfortran does not define the size. --- Modules/CMakeDetermineCompilerABI.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Modules/CMakeDetermineCompilerABI.cmake') diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake index a808a284dc..1c9899e64d 100644 --- a/Modules/CMakeDetermineCompilerABI.cmake +++ b/Modules/CMakeDetermineCompilerABI.cmake @@ -57,6 +57,8 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ABI lang src) IF(ABI_SIZEOF_DPTR) SET(CMAKE_${lang}_SIZEOF_DATA_PTR "${ABI_SIZEOF_DPTR}" PARENT_SCOPE) + ELSEIF(CMAKE_${lang}_SIZEOF_DATA_PTR_DEFAULT) + SET(CMAKE_${lang}_SIZEOF_DATA_PTR "${CMAKE_${lang}_SIZEOF_DATA_PTR_DEFAULT}" PARENT_SCOPE) ENDIF(ABI_SIZEOF_DPTR) IF(ABI_NAME) -- cgit v1.2.1