cmake: Build generator files in build directory
authorKyle Manna <kyle@kylemanna.com>
Thu, 15 Oct 2015 20:04:23 +0000 (13:04 -0700)
committerKyle Manna <kyle@kylemanna.com>
Thu, 15 Oct 2015 20:04:23 +0000 (13:04 -0700)
commita97617bb41d2e03c670467a0d053b4d2eaae8dad
treeb4d980088ebd411c5ae570a7d0d576123ac7d27a
parent6b63b26404064272394740f6b7354e75c5805cec
cmake: Build generator files in build directory

Treat the source directory as immutable.  Copy the generator directory
which previously generated files in-tree to the build directory and
then generate files.

Many emerging continuous integration build systems test builds across
multiple versions of dependencies protobuf and python versions in
particular.  The previous source tree builds resulted in stale files
from the last build breaking the current build.  By placing the build
files in the build directory, the build system automatically removes
stale files (removes output build directory) and regenerates them as
necessary.
extra/FindNanopb.cmake