Build Environment: fix Windows Alembic build.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 27 Aug 2018 17:06:00 +0000 (19:06 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 27 Aug 2018 17:07:14 +0000 (19:07 +0200)
Ideally we should remove this difference between platforms, but for now
just do the simple fix.

build_files/build_environment/cmake/alembic.cmake

index 615413554cf59c77569f761bbd3ac208998beed8..e6323d536615f8800e6d43474cd904e8e94c572d 100644 (file)
@@ -26,6 +26,12 @@ if(ALEMBIC_HDF5)
        endif()
 endif()
 
+if(WIN32)
+       set(ALEMBIC_ILMBASE ${LIBDIR}/openexr)
+else()
+       set(ALEMBIC_ILMBASE ${LIBDIR}/ilmbase)
+endif()
+
 set(ALEMBIC_EXTRA_ARGS
        -DBUILDSTATIC=ON
        -DLINKSTATIC=ON
@@ -38,13 +44,13 @@ set(ALEMBIC_EXTRA_ARGS
        -DBoost_DEBUG=ON
        -DBOOST_ROOT=${LIBDIR}/boost
        -DBoost_NO_SYSTEM_PATHS=ON
-       -DILMBASE_ROOT=${LIBDIR}/ilmbase
-       -DALEMBIC_ILMBASE_INCLUDE_DIRECTORY=${LIBDIR}/ilmbase/include/OpenEXR
-       -DALEMBIC_ILMBASE_HALF_LIB=${LIBDIR}/ilmbase/lib/${LIBPREFIX}Half${ILMBASE_VERSION_POSTFIX}${LIBEXT}
-       -DALEMBIC_ILMBASE_IMATH_LIB=${LIBDIR}/ilmbase/lib/${LIBPREFIX}Imath${ILMBASE_VERSION_POSTFIX}${LIBEXT}
-       -DALEMBIC_ILMBASE_ILMTHREAD_LIB=${LIBDIR}/ilmbase/lib/${LIBPREFIX}IlmThread${ILMBASE_VERSION_POSTFIX}${LIBEXT}
-       -DALEMBIC_ILMBASE_IEX_LIB=${LIBDIR}/ilmbase/lib/${LIBPREFIX}Iex${ILMBASE_VERSION_POSTFIX}${LIBEXT}
-       -DALEMBIC_ILMBASE_IEXMATH_LIB=${LIBDIR}/ilmbase/lib/${LIBPREFIX}IexMath${ILMBASE_VERSION_POSTFIX}${LIBEXT}
+       -DILMBASE_ROOT=${ALEMBIC_ILMBASE}
+       -DALEMBIC_ILMBASE_INCLUDE_DIRECTORY=${ALEMBIC_ILMBASE}/include/OpenEXR
+       -DALEMBIC_ILMBASE_HALF_LIB=${ALEMBIC_ILMBASE}/lib/${LIBPREFIX}Half${ILMBASE_VERSION_POSTFIX}${LIBEXT}
+       -DALEMBIC_ILMBASE_IMATH_LIB=${ALEMBIC_ILMBASE}/lib/${LIBPREFIX}Imath${ILMBASE_VERSION_POSTFIX}${LIBEXT}
+       -DALEMBIC_ILMBASE_ILMTHREAD_LIB=${ALEMBIC_ILMBASE}/lib/${LIBPREFIX}IlmThread${ILMBASE_VERSION_POSTFIX}${LIBEXT}
+       -DALEMBIC_ILMBASE_IEX_LIB=${ALEMBIC_ILMBASE}/lib/${LIBPREFIX}Iex${ILMBASE_VERSION_POSTFIX}${LIBEXT}
+       -DALEMBIC_ILMBASE_IEXMATH_LIB=${ALEMBIC_ILMBASE}/lib/${LIBPREFIX}IexMath${ILMBASE_VERSION_POSTFIX}${LIBEXT}
        -DUSE_PYILMBASE=0
        -DUSE_PYALEMBIC=0
        -DUSE_ARNOLD=0