mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-06-20 19:15:14 +08:00
Fix: Unity requires static libs for iOS.
This commit is contained in:
parent
c1255f6315
commit
597bfcd4f3
@ -1010,7 +1010,11 @@ else()
|
|||||||
$<TARGET_OBJECTS:draco_points_dec>
|
$<TARGET_OBJECTS:draco_points_dec>
|
||||||
$<TARGET_OBJECTS:draco_points_enc>)
|
$<TARGET_OBJECTS:draco_points_enc>)
|
||||||
if(BUILD_UNITY_PLUGIN)
|
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}
|
${draco_version_sources}
|
||||||
$<TARGET_OBJECTS:draco_attributes>
|
$<TARGET_OBJECTS:draco_attributes>
|
||||||
$<TARGET_OBJECTS:draco_compression_attributes_dec>
|
$<TARGET_OBJECTS:draco_compression_attributes_dec>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user