Fix pocketfft include path in mobile build (#63714)
authorPeter Bell <peterbell10@live.co.uk>
Tue, 24 Aug 2021 00:39:50 +0000 (17:39 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 24 Aug 2021 00:48:57 +0000 (17:48 -0700)
commite4f44bec27bc458c5dc8021ed87f0e6fae904ef4
treedd25b7478f703f56d789050eb200624f3b60370c
parentfc474979055c99d9aa48e1ee8d0c7a33a2a67daf
Fix pocketfft include path in mobile build (#63714)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63714

PocketFFT was disabled for CMake < 3.9 but CMake 3.11 is the first version to support `INCLUDE_DIRECTORIES` as a target property. So updating to CMake 3.10 causes the mobile builds to fail. Instead of limiting the CMake support, this just adds the include directory to the entire target,

Test Plan: Imported from OSS

Reviewed By: bdhirsh

Differential Revision: D30498369

Pulled By: malfet

fbshipit-source-id: 83372e29c477c97e7015763b7c29d6d7e456bcef
caffe2/CMakeLists.txt
cmake/Dependencies.cmake