• Brad King's avatar
    Use Fortran ABI detection results conservatively · 0457d531
    Brad King authored
    We set CMAKE_Fortran_SIZEOF_DATA_PTR in the Fortran compiler information
    file after detecting the compiler ABI.  However, since Fortran does not
    really have pointers, the preprocessor-based detection is unreliable.
    The result is needed to set CMAKE_SIZEOF_VOID_P only for Fortran-only
    projects because the value can come from C or C++ compilers otherwise.
    Therefore when CMAKE_SIZEOF_VOID_P is available from another language we
    should defer to it.
    0457d531
CMakeFortranCompiler.cmake.in 1.71 KB