From 11dc17315e385fe3ad143692f3cd74aa236926f0 Mon Sep 17 00:00:00 2001 From: Tom Finegan Date: Fri, 18 May 2018 10:49:09 -0700 Subject: [PATCH] Don't set SOVERSION property for ios/macos unity bundle. It causes a link error like the following: clang: error: invalid argument '-compatibility_version 1.0.0' only allowed with '-dynamiclib' Fixes: https://github.com/google/draco/issues/393 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95aa90d..7064c0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -881,7 +881,7 @@ else () set_target_properties(dracodec PROPERTIES SOVERSION 1) set_target_properties(dracoenc PROPERTIES SOVERSION 1) set_target_properties(draco PROPERTIES SOVERSION 1) - if (BUILD_UNITY_PLUGIN) + if (BUILD_UNITY_PLUGIN AND (NOT APPLE)) set_target_properties(dracodec_unity PROPERTIES SOVERSION 1) endif () endif ()