[packages/nlohmann-json] - fixed includedir in .pc file; release 2

qboosh qboosh at pld-linux.org
Mon Oct 5 22:22:36 CEST 2026


commit 3ed9daa1132c1494e711281c52212bfe99d6a54d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Oct 5 22:23:05 2026 +0200

    - fixed includedir in .pc file; release 2

 nlohmann-json.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/nlohmann-json.spec b/nlohmann-json.spec
index 7aba442..4473336 100644
--- a/nlohmann-json.spec
+++ b/nlohmann-json.spec
@@ -2,7 +2,7 @@ Summary:	JSON for Modern C++ by Niels Lohmann
 Summary(pl.UTF-8):	JSON dla współczesnego C++ autorstwa Nielsa Lohmanna
 Name:		nlohmann-json
 Version:	3.12.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/nlohmann/json/releases
@@ -39,8 +39,10 @@ JSON dla współczesnego C++ autorstwa Nielsa Lohmanna.
 %build
 install -d build
 cd build
-# force noarch libdir
+# CMAKE_INSTALL_LIBDIR: force noarch libdir for cmake config
+# .pc file generation expects relative CMAKE_INSTALL_INCLUDEDIR
 %cmake .. \
+	-DCMAKE_INSTALL_INCLUDEDIR=include \
 	-DCMAKE_INSTALL_LIBDIR=share \
 	-DJSON_MultipleHeaders=ON
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nlohmann-json.git/commitdiff/3ed9daa1132c1494e711281c52212bfe99d6a54d



More information about the pld-cvs-commit mailing list