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
This commit is contained in:
Tom Finegan 2018-05-18 10:49:09 -07:00
parent da0df33a89
commit 11dc17315e

View File

@ -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 ()