mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-11 17:09:01 +08:00
cmake: Fix mac build
Clang @ Apple LLVM version 9.0.0 (clang-900.0.39.2) fails to link when SOVERSION is set for bundles. Don't set it on Apple targets.
This commit is contained in:
parent
a37163c368
commit
d4675cf0d1
@ -798,8 +798,6 @@ else ()
|
||||
add_library(draco_maya_plugin OBJECT
|
||||
${draco_maya_plug_sources})
|
||||
|
||||
|
||||
|
||||
# Library targets that consume the object collections.
|
||||
add_library(dracodec
|
||||
${draco_version_sources}
|
||||
@ -917,8 +915,6 @@ else ()
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
|
||||
|
||||
set(draco_header_only_targets
|
||||
draco_compression_attributes_pred_schemes_dec
|
||||
draco_dec_config
|
||||
@ -936,7 +932,7 @@ else ()
|
||||
if (BUILD_UNITY_PLUGIN AND (NOT APPLE))
|
||||
set_target_properties(dracodec_unity PROPERTIES SOVERSION 1)
|
||||
endif ()
|
||||
if (BUILD_MAYA_PLUGIN)
|
||||
if (BUILD_MAYA_PLUGIN AND (NOT APPLE))
|
||||
set_target_properties(draco_maya_wrapper PROPERTIES SOVERSION 1)
|
||||
endif ()
|
||||
endif ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user