@@ -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" )
4661endif ()
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-
6363if (ANDROID)
6464 set (remote_config_platform_SRCS
6565 "${android_SRCS} " )
0 commit comments