CAFFE2_INCLUDE_DIRS points to invalid path (#14306)
authorAchal Shah <achalshah20@gmail.com>
Thu, 6 Dec 2018 06:30:07 +0000 (22:30 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 6 Dec 2018 06:32:04 +0000 (22:32 -0800)
commit14fb651b5f458c28d3843824f455acbc3c1e13b2
treea895358aa75fb4a7116c87f6030a8679ed9cb54a
parent5e307bd1be48665ea7fc7c8d0efefb7ca91c8bb9
CAFFE2_INCLUDE_DIRS points to invalid path (#14306)

Summary:
I know that including CAFFE2_INCLUDE_DIRS in include headers are not necessary for newer cmakes. But I had this in one of my old projects and **cmake gave me error that "/usr/lib/include" is invalid path**.

It seems like "${_INSTALL_PREFIX}/lib/include" should be changed to "${_INSTALL_PREFIX}/include" as all caffe2 headers are in /include rather than /lib/include/

Please correct me if I am wrong?
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14306

Differential Revision: D13356246

Pulled By: ezyang

fbshipit-source-id: e2d5d3c42352e59b245714ad90fd7a9ef48170d7
cmake/Caffe2Config.cmake.in