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: Ic8c13f93d20860dfdb4512d9a7fd75a09a94661c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit933b8d5305d95db27b46355a6bedb40cc91a12c0
parentfaa5e5bf1626124b6f1e159c8f37ffbbc321ad96
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeWed, 12 Mar 2025 17:15:34 +0100