Bug 253381

Summary: devel/cmake: Backport the fix for basic use in Fortran/C/C++ projects
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Only Me CC: adridg
Priority: --- Flags: bugzilla: maintainer-feedback? (kde)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Yuri Victorovich freebsd_committer freebsd_triage 2021-02-09 17:59:49 UTC
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)
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-02-10 11:22:17 UTC
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