diff options
author | Brad King <brad.king@kitware.com> | 2011-11-29 20:13:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-12-05 21:32:29 (GMT) |
commit | ecd8414757368f45152f6e3e4841a5b3715fa2d3 (patch) | |
tree | a7a42232a92c873850d89f94a95fb41c5d3b67fe /Modules/Platform | |
parent | 89f6fbaae355c4b84a39640752c98a2c6d1b34e6 (diff) | |
download | CMake-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/Platform')
-rw-r--r-- | Modules/Platform/Windows-GNU-Fortran.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-GNU-Fortran.cmake b/Modules/Platform/Windows-GNU-Fortran.cmake index c66feed..b81b796 100644 --- a/Modules/Platform/Windows-GNU-Fortran.cmake +++ b/Modules/Platform/Windows-GNU-Fortran.cmake @@ -1,2 +1,5 @@ include(Platform/Windows-GNU) __windows_compiler_gnu(Fortran) + +# gfortran on 64-bit MinGW defines __SIZEOF_POINTER__ +set(CMAKE_Fortran_SIZEOF_DATA_PTR_DEFAULT 4) |