Don't include stm_image implementation if using stb library from Hunter
Hunter compiles its own stb library binaries. Currently a second copy is compiled by defining STB_IMAGE_IMPLEMENTATION in Assimp.cpp. This may cause hard to understand bugs if this compiled copy ever becomes different from what Hunter supplies.pull/4737/head
parent
9a11cabb06
commit
22494bde17
|
@ -1273,11 +1273,13 @@ ASSIMP_API void aiQuaternionInterpolate(
|
||||||
#define ASSIMP_HAS_PBRT_EXPORT (!ASSIMP_BUILD_NO_EXPORT && !ASSIMP_BUILD_NO_PBRT_EXPORTER)
|
#define ASSIMP_HAS_PBRT_EXPORT (!ASSIMP_BUILD_NO_EXPORT && !ASSIMP_BUILD_NO_PBRT_EXPORTER)
|
||||||
#define ASSIMP_HAS_M3D ((!ASSIMP_BUILD_NO_EXPORT && !ASSIMP_BUILD_NO_M3D_EXPORTER) || !ASSIMP_BUILD_NO_M3D_IMPORTER)
|
#define ASSIMP_HAS_M3D ((!ASSIMP_BUILD_NO_EXPORT && !ASSIMP_BUILD_NO_M3D_EXPORTER) || !ASSIMP_BUILD_NO_M3D_IMPORTER)
|
||||||
|
|
||||||
#if ASSIMP_HAS_PBRT_EXPORT
|
#ifndef STB_USE_HUNTER
|
||||||
# define ASSIMP_NEEDS_STB_IMAGE 1
|
# if ASSIMP_HAS_PBRT_EXPORT
|
||||||
#elif ASSIMP_HAS_M3D
|
# define ASSIMP_NEEDS_STB_IMAGE 1
|
||||||
# define ASSIMP_NEEDS_STB_IMAGE 1
|
# elif ASSIMP_HAS_M3D
|
||||||
# define STBI_ONLY_PNG
|
# define ASSIMP_NEEDS_STB_IMAGE 1
|
||||||
|
# define STBI_ONLY_PNG
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Ensure all symbols are linked correctly
|
// Ensure all symbols are linked correctly
|
||||||
|
|
Loading…
Reference in New Issue