Modify qt6/cbor for proper builds

Tested with Debian 12 and Qt 6.4
This commit is contained in:
Rick Calixte 2024-11-17 11:22:24 -05:00
parent 4f57b3bd5e
commit 92208545df
No known key found for this signature in database

View File

@ -147,7 +147,7 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
generate(
"qt6/cbor",
[]string{
"/usr/include/x86_64-linux-gnu/qt5/QtCore",
"/usr/include/x86_64-linux-gnu/qt6/QtCore",
},
func(fullpath string) bool {
// Only include the same json, xml, cbor files excluded above
@ -155,7 +155,7 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
return strings.HasPrefix(fname, "qcbor")
},
clangBin,
pkgConfigCflags("Qt6Core"),
"--std=c++20 "+pkgConfigCflags("Qt6Core"),
outDir,
ClangMatchSameHeaderDefinitionOnly,
)