mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-13 01:19:01 +08:00
Fix NMake builds with BUILD_SHARED_LIBS enabled.
Fixes https://github.com/google/draco/issues/328
This commit is contained in:
parent
e3a9d6ce52
commit
5c15f38641
@ -45,6 +45,11 @@ option(BUILD_UNITY_PLUGIN "Build plugin library for Unity" OFF)
|
|||||||
option(BUILD_FOR_GLTF "" OFF)
|
option(BUILD_FOR_GLTF "" OFF)
|
||||||
option(BUILD_MAYA_PLUGIN "Build plugin library for Maya" OFF)
|
option(BUILD_MAYA_PLUGIN "Build plugin library for Maya" OFF)
|
||||||
|
|
||||||
|
if (WIN32 AND BUILD_SHARED_LIBS)
|
||||||
|
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
|
||||||
|
include(GenerateExportHeader)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (BUILD_FOR_GLTF)
|
if (BUILD_FOR_GLTF)
|
||||||
# Override settings when building for GLTF.
|
# Override settings when building for GLTF.
|
||||||
draco_enable_feature(FEATURE "DRACO_MESH_COMPRESSION_SUPPORTED")
|
draco_enable_feature(FEATURE "DRACO_MESH_COMPRESSION_SUPPORTED")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user