pytorch/scripts
Yangqing Jia 73ed0d5ced Modernizing the gflags dependency in cmake.
Summary:
Historically, for interface dependent libraries (glog, gflags and protobuf), exposing them in Caffe2Config.cmake is usually difficult.

New versions of glog and gflags ship with new-style cmake targets, so one does not need to use variables. New-style targets also make it easier for people to depend on them in installed config files.

This diff modernizes the gflags library, and still provides a fallback path if the installed gflags does not have cmake config files coming with it.

It does change one behavior of the build process though - when one specifies -DUSE_GFLAGS=ON but gflags cannot be found, the old script automatically turns it off but the new script crashes, forcing the user to specify USE_GFLAGS=OFF.
Closes https://github.com/caffe2/caffe2/pull/1819

Differential Revision: D6826604

Pulled By: Yangqing

fbshipit-source-id: 210f3926f291c8bfeb24eb9671e5adfcbf8cf7fe
2018-01-27 19:31:14 -08:00
..
appveyor bugfix for Windows, esp. VS 2017 2017-03-21 05:17:59 -07:00
add_apache_header.sh Re-license to Apache 2017-09-28 16:22:00 -07:00
apache_header.txt Re-license to Apache 2017-09-28 16:22:00 -07:00
build_anaconda.sh Assorted small change to conda scripts 2018-01-26 09:32:36 -08:00
build_android.sh Modernizing the gflags dependency in cmake. 2018-01-27 19:31:14 -08:00
build_host_protoc.bat Revert D6817719: [caffe2][PR] Better support for windows 2018-01-26 06:08:49 -08:00
build_host_protoc.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_ios.sh Modernizing the gflags dependency in cmake. 2018-01-27 19:31:14 -08:00
build_local.sh Adding conda specific script to macos builds 2018-01-03 17:14:27 -08:00
build_raspbian.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_tegra_x1.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_tizen.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_windows.bat Revert D6817719: [caffe2][PR] Better support for windows 2018-01-26 06:08:49 -08:00
diagnose_protobuf.py Re-apply #266 2017-04-25 21:17:04 -07:00
get_python_cmake_flags.py Officially support Python 3 in Conda build. 2017-09-23 16:16:49 -07:00
start_ipython_notebook.sh Ipython notebook directory name is changed, Change from ipython to jupyter, Also pass arguments instead of fixing --ip 2017-12-11 13:05:40 -08:00
temp.sh Re-license to Apache 2017-09-28 16:22:00 -07:00