Created attachment 222301 [details] patch The backported patch fixes basic use in Fortran/C/C++ projects: https://gitlab.kitware.com/cmake/cmake/-/issues/21408 > cmake_minimum_required(VERSION 3.19) > project(Dakota LANGUAGES C CXX Fortran) > > INCLUDE(FortranCInterface) > FortranCInterface_VERIFY(CXX)
A commit references this bug: Author: adridg Date: Wed Feb 10 11:21:31 UTC 2021 New revision: 564851 URL: https://svnweb.freebsd.org/changeset/ports/564851 Log: Backport a Fortran-with-CMake patch from CMake 3.20 This is already merged upstream and slated for 3.20, but is convenient to have in ports now (with CMake 3.19.4). It allows propagating CMAKE_EXE_LINKER_FLAGS into fortran-compatibility-tests in the face of post-CMake-3.10 policy settings. Patch from yuri@, only massaged to avoid having an octothorpe in a filename. PR: 253381 Submitted by: yuri@ Obtained from: upstream Changes: head/devel/cmake/Makefile head/devel/cmake/files/patch-cmake-issue-21408