Commit efdc2332 authored by Yong Tang's avatar Yong Tang Committed by Gunhan Gulsoy
Browse files

Fix CMAKE build issue on Linux (#20122)



* Fix CMAKE build issue on Linux

While building tensorflow on Linux with CMAKE, as specified in README:
```
tensorflow/tools/ci_build/ci_build.sh CMAKE tensorflow/tools/ci_build/builds/cmake.sh
```

The following build error happens:
```
CMakeFiles/tf_core_lib.dir/workspace/tensorflow/core/platform/cloud/curl_http_request.cc.o: In function `tensorflow::CurlHttpRequest::~CurlHttpRequest()':
curl_http_request.cc:(.text+0x11b): undefined reference to `curl_slist_free_all'
curl_http_request.cc:(.text+0x146): undefined reference to `curl_slist_free_all'
curl_http_request.cc:(.text+0x180): undefined reference to `curl_easy_cleanup'
...
```

There were several issues related. The file above requires curl which
was never supported on CMAKE at the first places.

This fix address the issue so that CMAKE build works on Linux.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Update boringssl so that it is synced up with the version used in bazel

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Add tensorflow_ENABLE_GCS_SUPPORT to control cloud platform files

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Use tensorflow_ENABLE_GCS_SUPPORT to control contrib/cloud on/off

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Remove tensorflow_ENABLE_GCS_SUPPORT

As GCS requires curl so it is not possible to have GCS
support now.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 6cab66af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment