From a9896fa01b72f260940c3b5df4eec0c1b73dce26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 28 Mar 2017 20:57:22 +0200 Subject: [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. --- scripts/config.xcconfig.in | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/config.xcconfig.in (limited to 'scripts') diff --git a/scripts/config.xcconfig.in b/scripts/config.xcconfig.in new file mode 100644 index 0000000000..eb6bc71b89 --- /dev/null +++ b/scripts/config.xcconfig.in @@ -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@" -- cgit v1.2.1