Only look for Caffe2 package when shared (#18421)
authorSacha <xsacha@gmail.com>
Mon, 25 Mar 2019 14:21:37 +0000 (07:21 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 25 Mar 2019 14:27:24 +0000 (07:27 -0700)
commita4f83fff2b7fb0e7ca7b584648c98165b2576ed4
tree6e1c7e987e560f078e53136e14fa8819fc471427
parentc297f26843426d4a2480b27ea136111a2c87e3b0
Only look for Caffe2 package when shared (#18421)

Summary:
Previously it would look for the Config even if it was not written.

Fixed #18419
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18421

Differential Revision: D14597139

Pulled By: ezyang

fbshipit-source-id: c212cbf5dc91564c12d9d07e507c8285e11c6bdf
cmake/TorchConfig.cmake.in