summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerABI.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-11-29 20:13:47 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-05 21:32:29 (GMT)
commitecd8414757368f45152f6e3e4841a5b3715fa2d3 (patch)
treea7a42232a92c873850d89f94a95fb41c5d3b67fe /Modules/CMakeDetermineCompilerABI.cmake
parent89f6fbaae355c4b84a39640752c98a2c6d1b34e6 (diff)
downloadCMake-ecd8414757368f45152f6e3e4841a5b3715fa2d3.zip
CMake-ecd8414757368f45152f6e3e4841a5b3715fa2d3.tar.gz
CMake-ecd8414757368f45152f6e3e4841a5b3715fa2d3.tar.bz2
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.
Diffstat (limited to 'Modules/CMakeDetermineCompilerABI.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerABI.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake
index a808a28..1c9899e 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)