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.
18 lines
347 B
CMake
18 lines
347 B
CMake
add_library(mbgl-loop-uv STATIC
|
|
platform/default/async_task.cpp
|
|
platform/default/run_loop.cpp
|
|
platform/default/timer.cpp
|
|
)
|
|
|
|
target_compile_options(mbgl-loop-uv
|
|
PRIVATE -fPIC
|
|
PRIVATE -fvisibility-inlines-hidden
|
|
)
|
|
|
|
target_include_directories(mbgl-loop-uv
|
|
PRIVATE include
|
|
PRIVATE src
|
|
)
|
|
|
|
create_source_groups(mbgl-loop-uv)
|