pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ccache/patches



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jul 15 15:06:42 UTC 2024

Added Files:
        pkgsrc/devel/ccache/patches: patch-cmake_FindFmt.cmake

Log Message:
ccache: add missing patch


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ccache/patches/patch-cmake_FindFmt.cmake

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/ccache/patches/patch-cmake_FindFmt.cmake
diff -u /dev/null pkgsrc/devel/ccache/patches/patch-cmake_FindFmt.cmake:1.1
--- /dev/null   Mon Jul 15 15:06:42 2024
+++ pkgsrc/devel/ccache/patches/patch-cmake_FindFmt.cmake       Mon Jul 15 15:06:42 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-cmake_FindFmt.cmake,v 1.1 2024/07/15 15:06:42 adam Exp $
+
+Find fmtlib 11.
+
+--- cmake/FindFmt.cmake.orig   2024-07-15 09:38:26.402859261 +0000
++++ cmake/FindFmt.cmake
+@@ -6,7 +6,7 @@ else()
+   find_path(FMT_INCLUDE_DIR fmt/core.h)
+   find_library(FMT_LIBRARY fmt)
+   if(FMT_INCLUDE_DIR AND FMT_LIBRARY)
+-    file(READ "${FMT_INCLUDE_DIR}/fmt/core.h" _fmt_core_h)
++    file(READ "${FMT_INCLUDE_DIR}/fmt/base.h" _fmt_core_h)
+     string(REGEX MATCH "#define FMT_VERSION ([0-9]+)" _ "${_fmt_core_h}")
+     math(EXPR _fmt_major "${CMAKE_MATCH_1} / 10000")
+     math(EXPR _fmt_minor "${CMAKE_MATCH_1} / 100 % 100")



Home | Main Index | Thread Index | Old Index