Skip to content

Commit 372cd42

Browse files
committed
Disable CppLibrary groups when empty
* Allow to hide the groups in QtCreator
1 parent f3b3f0f commit 372cd42

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

share/qbs/imports/qbs/base/CppLibrary.qbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Library {
1212

1313
Group {
1414
name: "Public Headers"
15+
condition: publicHeaders && publicHeaders.length > 0
1516
files: publicHeaders
1617
fileTags: ["bundle.input.public_hpp", "hpp"]
1718
prefix: product.sourceDirectory + "/"
@@ -21,6 +22,7 @@ Library {
2122

2223
Group {
2324
name: "Private Headers"
25+
condition: privateHeaders && privateHeaders.length > 0
2426
files: privateHeaders
2527
fileTags: ["bundle.input.private_hpp", "hpp"]
2628
prefix: product.sourceDirectory + "/"

0 commit comments

Comments
 (0)