CMake: Prevent creation of private modules without private headers


Add NO_PRIVATE_MODULE to the creation flags of module that don't have
any private headers. There's no point in creating private modules for
them.

Task-number: QTBUG-132526
Change-Id: I38945c6001cfd5460e5bdd531334b8c4b974c2a5
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit4bf0e5a5241da564ca4b78a4f9eb77ddd6dce6e4
parent7eae50a857e944dc84f2d64688f42499a7c57dd2
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeWed, 12 Mar 2025 17:15:46 +0100