From 597bfcd4f37923708ccf702928fb89a00af90f6f Mon Sep 17 00:00:00 2001 From: Andreas Atteneder Date: Wed, 3 Jul 2019 08:41:24 +0200 Subject: [PATCH] Fix: Unity requires static libs for iOS. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e70d01..9d59725 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1010,7 +1010,11 @@ else() $ $) if(BUILD_UNITY_PLUGIN) - add_library(dracodec_unity MODULE + set(UNITY_TYPE MODULE) + if(IOS) + set(UNITY_TYPE STATIC) + endif() + add_library(dracodec_unity ${UNITY_TYPE} ${draco_version_sources} $ $