Alembic/ msvc : Link alembic_d.lib instead of alembic.lib when doing debug builds.
authorlazydodo <github@lazydodo.com>
Mon, 8 Aug 2016 17:19:41 +0000 (11:19 -0600)
committerlazydodo <github@lazydodo.com>
Mon, 8 Aug 2016 17:19:41 +0000 (11:19 -0600)
CMakeLists.txt

index 74eb61ba1f13e361fcc46607e3e577d5b83e9c2b..8f0240eb75a39b247f4576f2d43bf0e043ca11b9 100644 (file)
@@ -2577,6 +2577,15 @@ else()
        unset(_SYSTEM_BIG_ENDIAN)
 endif()
 
+       if(WITH_ALEMBIC)
+               set(ALEMBIC ${LIBDIR}/alembic)
+               set(ALEMBIC_INCLUDE_DIR ${ALEMBIC}/include)
+               set(ALEMBIC_INCLUDE_DIRS ${ALEMBIC_INCLUDE_DIR})
+               set(ALEMBIC_LIBPATH ${ALEMBIC}/lib)
+               set(ALEMBIC_LIBRARIES
+                       optimized ${ALEMBIC_LIBPATH}/alembic.lib
+                       debug ${ALEMBIC_LIBPATH}/alembic_d.lib)
+       endif(WITH_ALEMBIC)
 
 if(WITH_IMAGE_OPENJPEG)
        if(WITH_SYSTEM_OPENJPEG)