Add rules for cmake 3.11 to not error
authorHerb Derby <herb@google.com>
Fri, 18 May 2018 19:09:41 +0000 (15:09 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 18 May 2018 20:56:24 +0000 (20:56 +0000)
commit5699278b679f27e1426ff1867807d689f0e806d4
tree18a3f58b533916ae2b86c055c7077ea3d4d42bfe
parent861b52ea98d703786ce485389db07e58759c1792
Add rules for cmake 3.11 to not error

As of cmake 3.11, the add_library target must have sources
associated with it. If there are sources, just compile
the file empty.cpp.

Change-Id: I7fec03dc0f0d2e6098572ed6e9fcdfaac3811024
Reviewed-on: https://skia-review.googlesource.com/129189
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
gn/gn_to_cmake.py