TF_CORE_FRAMEWORK has been keep using it if it's NOT WIN32.
Change-Id: Ia3c9885459a1e906a8bffaad2ebdf0751ca62911
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
set(${HDRS} ${${HDRS}} PARENT_SCOPE)
endfunction()
-if(NOT WIN32)
+if((NOT WIN32) AND (tensorflow_ENABLE_GRPC_SUPPORT))
function(RELATIVE_PROTOBUF_GENERATE_GRPC_CPP SRCS HDRS ROOT_DIR)
if(NOT ARGN)
message(SEND_ERROR "Error: RELATIVE_PROTOBUF_GENERATE_GRPC_CPP() called without any proto files")
${tensorflow_source_dir} ${tf_proto_text_srcs}
)
-if(WIN32)
+if(WIN32 OR (NOT tensorflow_ENABLE_GRPC_SUPPORT))
add_library(tf_protos_cc ${PROTO_SRCS} ${PROTO_HDRS})
else()
file(GLOB_RECURSE tf_protos_grpc_cc_srcs RELATIVE ${tensorflow_source_dir}