Fix static build on Windows (#15989)
authorpeter <peterghost86@gmail.com>
Mon, 14 Jan 2019 06:50:07 +0000 (22:50 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 14 Jan 2019 06:53:30 +0000 (22:53 -0800)
commite18d6cd4550552df93e1b87899ea75b4447225e6
tree932df4d443619c48d616be4511bccbc220691946
parenta282378baf1a1e674ce5480d33173dbb577716c0
Fix static build on Windows (#15989)

Summary:
Tested locally. It could be now be started by running `set EXTRA_CAFFE2_CMAKE_FLAGS= -DTORCH_STATIC=1` before build. If we want to make sure it works, then maybe we should add it into CI.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15989

Differential Revision: D13649935

Pulled By: soumith

fbshipit-source-id: 956945ed572819d8cf0bc9bd48df3ea9bc6f4a8a
torch/CMakeLists.txt