Fix T63678 Link error of tests with MSVC.

Ideally OCIO removes their log2 implementation from the global namespace
but for now this linker tweak will have to do.
This commit is contained in:
Ray molenkamp 2019-04-17 07:58:48 -06:00
parent edde48f578
commit 12aa9b2108
Notes: blender-bot 2023-02-14 06:27:47 +01:00
Referenced by issue #63678, We failed to build Blender on x86 due to error LNK2005: _log2 already defined in libucrt.lib with MSVC.
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,8 @@ set(INC
set(LIB
bf_blenloader # Should not be needed but gives linking error without it.
bf_intern_opencolorio # Should not be needed but gives windows linker errors if the ocio libs are linked before this
bf_gpu # Should not be needed but gives windows linker errors if the ocio libs are linked before this
bf_alembic
)

View File

@ -29,6 +29,8 @@ set(INC
set(LIB
bf_blenloader # Should not be needed but gives linking error without it.
bf_intern_opencolorio # Should not be needed but gives windows linker errors if the ocio libs are linked before this
bf_gpu # Should not be needed but gives windows linker errors if the ocio libs are linked before this
bf_bmesh
)