CMake: Don't build benchmark if qtprotobufgen is missing

Amends ed50bef7d1

Change-Id: I74e82a0b686aa5efb737202305801a49f5b811e4
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Alexandru Croitor 2024-03-04 10:45:22 +01:00
parent 84f941cec0
commit 93a3c6b5ae
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
add_subdirectory(protobuf)
if(QT_FEATURE_qtprotobufgen)
add_subdirectory(protobuf)
endif()