[build] generate .xcconfig files with configure_file

We previously used incremental `file(WRITE ...)` commands that gradually recreated the file on every CMake invocation. This sometimes lead to Xcode parsing a partially written file, which in turn breaks building dependend targets. Instead, we're now using a templated configuration file, which ensure that the file is created in one go and hopefully reduces the race condition between CMake and Xcode's automatic project updating.
This commit is contained in:
Konstantin Käfer
2017-03-28 20:57:22 +02:00
parent c86b492bf7
commit a9896fa01b
7 changed files with 25 additions and 22 deletions

View File

@@ -0,0 +1,5 @@
// Do not edit -- generated by CMake
// mbgl-core
mbgl_core_INCLUDE_DIRECTORIES = "@mbgl_core_INCLUDE_DIRECTORIES@"
mbgl_core_LINK_LIBRARIES = "@mbgl_core_LINK_LIBRARIES@"