Bug 253381 - devel/cmake: Backport the fix for basic use in Fortran/C/C++ projects
Summary: devel/cmake: Backport the fix for basic use in Fortran/C/C++ projects
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-09 17:59 UTC by Yuri Victorovich
Modified: 2021-02-10 11:22 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
patch (3.90 KB, patch)
2021-02-09 17:59 UTC, Yuri Victorovich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 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 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