The BUILD_COMPONENTS build property only exists when building through the Build system v1 compatibility shim. Query the executable library interface's linked-components list instead, so the app does not depend on compatibility-only properties.