Skip to content

Commit d44b998

Browse files
committed
Fix remote config cmake script trying to use nanopb when it isn't available
PiperOrigin-RevId: 242163289
1 parent 0d43196 commit d44b998

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

remote_config/CMakeLists.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@ if (NOT PROTOBUF_FOUND)
4343
your PATH, or set the CMake option FIREBASE_INCLUDE_REMOTE_CONFIG \
4444
to OFF to disable the firebase_remote_config build target.")
4545
endif()
46+
else()
47+
# Generates config.pb.c and config.pb.h
48+
NANOPB_GENERATE_CPP(PROTO_SRCS PROTO_HDRS src_protos/config.proto)
49+
set(desktop_SRCS
50+
src/desktop/remote_config.cc
51+
src/desktop/rest.cc
52+
src/desktop/config_data.cc
53+
src/desktop/file_manager.cc
54+
src/desktop/metadata.cc
55+
src/desktop/notification_channel.cc
56+
src/desktop/remote_config_desktop.cc
57+
src/desktop/rest_nanopb_decode.cc
58+
src/desktop/rest_nanopb_encode.cc
59+
"${PROJECT_BINARY_DIR}/config.pb.c"
60+
"${PROJECT_BINARY_DIR}/config.pb.h")
4661
endif()
4762

48-
# Generates config.pb.c and config.pb.h
49-
NANOPB_GENERATE_CPP(PROTO_SRCS PROTO_HDRS src_protos/config.proto)
50-
set(desktop_SRCS
51-
src/desktop/remote_config.cc
52-
src/desktop/rest.cc
53-
src/desktop/config_data.cc
54-
src/desktop/file_manager.cc
55-
src/desktop/metadata.cc
56-
src/desktop/notification_channel.cc
57-
src/desktop/remote_config_desktop.cc
58-
src/desktop/rest_nanopb_decode.cc
59-
src/desktop/rest_nanopb_encode.cc
60-
"${PROJECT_BINARY_DIR}/config.pb.c"
61-
"${PROJECT_BINARY_DIR}/config.pb.h")
62-
6363
if(ANDROID)
6464
set(remote_config_platform_SRCS
6565
"${android_SRCS}")

0 commit comments

Comments
 (0)