Add project declaration for CMake

Change-Id: I8a544fa91d2fba957dceb9e6b2a60ea824780e48
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/244096
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Herb Derby 2019-09-25 10:37:34 -04:00 committed by Skia Commit-Bot
parent 1585d7e108
commit 2b92142b0e

View File

@ -649,7 +649,8 @@ def WriteProject(project):
extName = posixpath.join(project.build_path, 'CMakeLists.ext')
out.write('# Generated by gn_to_cmake.py.\n')
out.write('cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)\n')
out.write('cmake_policy(VERSION 2.8.8)\n\n')
out.write('cmake_policy(VERSION 2.8.8)\n')
out.write('project(Skia)\n\n')
out.write('file(WRITE "')
out.write(CMakeStringEscape(posixpath.join(project.build_path, "empty.cpp")))