mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 06:59:03 +08:00
Fix BUILD_SHARED_LIBS=ON GCC build
This commit is contained in:
parent
d7f6222702
commit
be7fc68fbf
@ -737,6 +737,9 @@ if (EMSCRIPTEN)
|
||||
else ()
|
||||
# Standard Draco libs, encoder and decoder.
|
||||
# Object collections that mirror the Draco directory structure.
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
add_library(draco_attributes OBJECT ${draco_attributes_sources})
|
||||
add_library(draco_compression_attributes_dec OBJECT
|
||||
${draco_compression_attributes_dec_sources})
|
||||
|
Loading…
x
Reference in New Issue
Block a user