mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 16:31:10 +00:00
build-all: fix opencollada patch to support it being buildable as shared
This commit is contained in:
+3
-3
@@ -1112,9 +1112,9 @@ if "libxml2" in targets:
|
|||||||
if "OpenCOLLADA" in targets:
|
if "OpenCOLLADA" in targets:
|
||||||
patches = ["./patches/opencollada/pr622_and_disable_subdirs.patch"]
|
patches = ["./patches/opencollada/pr622_and_disable_subdirs.patch"]
|
||||||
|
|
||||||
# This patch allows static libraries config on Unix,
|
# OpenCOLLADAConfig.cmake.in hardcodes shared-lib targets on Unix regardless of
|
||||||
# because the config is weird and doesn't allow non-shared libraries on Unix.
|
# whether shared libs were actually built. We make it follow `USE_SHARED` instead.
|
||||||
patches.append("./patches/opencollada/allow_static_libraries_config_on_unix.patch")
|
patches.append("./patches/opencollada/config_select_libs_by_use_shared.patch")
|
||||||
|
|
||||||
if "wasm" in flags:
|
if "wasm" in flags:
|
||||||
# This is necessary for the WASM build, because recent versions of
|
# This is necessary for the WASM build, because recent versions of
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ index d765b108..6800c2a7 100644
|
|||||||
|
|
||||||
# Set the library variable
|
# Set the library variable
|
||||||
-if(UNIX)
|
-if(UNIX)
|
||||||
+if(0)
|
+if(@USE_SHARED@)
|
||||||
set(OPENCOLLADA_LIBRARIES
|
set(OPENCOLLADA_LIBRARIES
|
||||||
ftoa_shared
|
ftoa_shared
|
||||||
buffer_shared
|
buffer_shared
|
||||||
Reference in New Issue
Block a user