Files
MapLibreParticleLab/cmake/loop-darwin.cmake
Konstantin Käfer a9896fa01b [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.
2017-03-28 21:24:12 +02:00

20 lines
441 B
CMake

add_library(mbgl-loop-darwin STATIC
platform/darwin/src/async_task.cpp
platform/darwin/src/run_loop.cpp
platform/darwin/src/timer.cpp
)
set_xcode_property(mbgl-loop-darwin GCC_SYMBOLS_PRIVATE_EXTERN YES)
target_compile_options(mbgl-loop-darwin
PRIVATE -fPIC
PRIVATE -fvisibility-inlines-hidden
)
target_include_directories(mbgl-loop-darwin
PRIVATE include
PRIVATE src
)
create_source_groups(mbgl-loop-darwin)