diff options
Diffstat (limited to 'tensorflow/contrib/cmake/tf_core_distributed_runtime.cmake')
-rw-r--r-- | tensorflow/contrib/cmake/tf_core_distributed_runtime.cmake | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tensorflow/contrib/cmake/tf_core_distributed_runtime.cmake b/tensorflow/contrib/cmake/tf_core_distributed_runtime.cmake index d52b18a85e..e1f8bdd609 100644 --- a/tensorflow/contrib/cmake/tf_core_distributed_runtime.cmake +++ b/tensorflow/contrib/cmake/tf_core_distributed_runtime.cmake @@ -18,14 +18,12 @@ add_library(tf_core_distributed_runtime OBJECT ${tf_core_distributed_runtime_src add_dependencies(tf_core_distributed_runtime tf_core_cpu grpc - re2_copy_headers_to_destination ) target_include_directories(tf_core_distributed_runtime PRIVATE ${tensorflow_source_dir} ${eigen_INCLUDE_DIRS} ${GRPC_INCLUDE_DIRS} - ${re2_INCLUDE_DIR} ) target_compile_options(tf_core_distributed_runtime PRIVATE @@ -60,7 +58,6 @@ add_executable(grpc_tensorflow_server add_dependencies(tf_core_distributed_runtime grpc - re2_copy_headers_to_destination ) target_include_directories(grpc_tensorflow_server PUBLIC @@ -76,8 +73,6 @@ target_link_libraries(grpc_tensorflow_server PUBLIC ${PROTOBUF_LIBRARIES} ${GRPC_LIBRARIES} tf_protos_cc - re2_lib - ${boringssl_STATIC_LIBRARIES} ${farmhash_STATIC_LIBRARIES} ${gif_STATIC_LIBRARIES} ${jpeg_STATIC_LIBRARIES} @@ -86,6 +81,10 @@ target_link_libraries(grpc_tensorflow_server PUBLIC ${ZLIB_LIBRARIES} ${CMAKE_DL_LIBS} ) +if(tensorflow_ENABLE_SSL_SUPPORT) + target_link_libraries(grpc_tensorflow_server PUBLIC + ${boringssl_STATIC_LIBRARIES}) +endif() target_compile_options(grpc_tensorflow_server PRIVATE -fno-exceptions |