cmake: support using a separate build directory
authorAdam Simpkins <simpkins@fb.com>
Sat, 13 Jan 2018 00:02:57 +0000 (16:02 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 13 Jan 2018 00:07:43 +0000 (16:07 -0800)
commit3d9eb7ffc32c2f5f878bb4aee61d30cb8c62a146
tree1c78a2e2524398880a4db182691d7d3955d5dc6a
parent4a5ba093e7ab8eac7354180d749a322de60f7fa9
cmake: support using a separate build directory

Summary:
Fix rules in the CMakeLists.txt file that generate source files to first create
their output directory if necessary.  This allows the build to succeed when
building with a separate build output directory, rather than placing build
artifacts in the source tree itself.

Reviewed By: meyering

Differential Revision: D6710436

fbshipit-source-id: 786a65a37a70833e7e4a5affe4df292626dbb591
CMakeLists.txt