From 0754edbf9b69b32d03492af39ab8a2ca7778385d Mon Sep 17 00:00:00 2001 From: Ben Doherty Date: Fri, 19 Oct 2018 12:51:53 -0700 Subject: [PATCH] Fix broken iOS build (#411) --- filament/CMakeLists.txt | 2 +- filament/test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filament/CMakeLists.txt b/filament/CMakeLists.txt index 6e826bbe73..0027cee178 100644 --- a/filament/CMakeLists.txt +++ b/filament/CMakeLists.txt @@ -316,7 +316,7 @@ if (ANDROID) target_link_libraries(${TARGET} PUBLIC GLESv3 EGL android) endif() -if (APPLE) +if (APPLE AND NOT IOS) target_link_libraries(${TARGET} PRIVATE "-framework Cocoa") endif() diff --git a/filament/test/CMakeLists.txt b/filament/test/CMakeLists.txt index 802ca1de83..6f9b3ebc0f 100644 --- a/filament/test/CMakeLists.txt +++ b/filament/test/CMakeLists.txt @@ -13,7 +13,7 @@ if (ANDROID) add_executable(filament_benchmark filament_benchmark.cpp) target_link_libraries(filament_benchmark PRIVATE utils filament) target_compile_options(filament_benchmark PRIVATE ${COMPILER_FLAGS}) -else() +elseif(NOT IOS) # The following tests rely on private APIs that are stripped # away in Release builds if (TNT_DEV)