mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 20:29:04 +08:00
Merge pull request #340 from mlamarre/fix_gcc_shared_libs
Fix BUILD_SHARED_LIBS=ON GCC build
This commit is contained in:
commit
1672f9213c
@ -740,6 +740,9 @@ if (EMSCRIPTEN)
|
|||||||
else ()
|
else ()
|
||||||
# Standard Draco libs, encoder and decoder.
|
# Standard Draco libs, encoder and decoder.
|
||||||
# Object collections that mirror the Draco directory structure.
|
# 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_attributes OBJECT ${draco_attributes_sources})
|
||||||
add_library(draco_compression_attributes_dec OBJECT
|
add_library(draco_compression_attributes_dec OBJECT
|
||||||
${draco_compression_attributes_dec_sources})
|
${draco_compression_attributes_dec_sources})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user