pytorch/docs/cpp/source
Joel Schlosser e60f18c2ad Generate header with version #defines for LibTorch (#50073)
Summary:
Uses cmake's `configure_file()` macro to generate a new `torch/csrc/api/include/torch/version.h` header with `TORCH_VERSION_{MAJOR,MINOR,PATCH}` \#defines from an input file `torch/csrc/api/include/torch/version.h.in`.

For Bazel builds, this is accomplished with `header_template_rule()`.

For Buck builds, this is accomplished with `fb_native.genrule()`.

Fixes https://github.com/pytorch/pytorch/issues/44365

<img width="1229" alt="Screen Shot 2021-01-05 at 3 19 24 PM" src="https://user-images.githubusercontent.com/75754324/103809279-3fd80380-5027-11eb-9039-fd23922cebd5.png">

Pull Request resolved: https://github.com/pytorch/pytorch/pull/50073

Reviewed By: glaringlee

Differential Revision: D25855877

Pulled By: jbschlosser

fbshipit-source-id: 6bb792718c97e2c2dbaa74b7b7b831a4f6938e49
2021-02-03 22:18:53 -08:00
..
_static Fix overlapping keywords (#34142) 2020-03-06 19:16:21 -08:00
notes Generate header with version #defines for LibTorch (#50073) 2021-02-03 22:18:53 -08:00
check-doxygen.sh [pytorch] rewrite of the python binding codegen with the v2 API (#46244) 2020-10-19 17:36:45 -07:00
conf.py Document IValue (#31904) 2020-01-08 16:08:35 -08:00
Doxyfile remove use of the term "blacklist" from docs/cpp/source/Doxyfile (#41450) 2020-07-15 19:45:53 -07:00
frontend.rst Docs: c++11 -> c++14 (#30530) 2019-12-17 14:09:02 -08:00
index.rst grammatically update index.rst (#45801) 2020-10-05 09:55:56 -07:00
installing.rst Fix missing code in 'Installing C++ distribution of Pytorch' (#39237) 2020-06-01 07:54:43 -07:00
library.rst Add reference documentation for torch/library.h (#41470) 2020-07-17 10:05:16 -07:00