2019-09-30 04:07:50 +08:00
|
|
|
diff --git a/cmake/AlembicIlmBase.cmake b/cmake/AlembicIlmBase.cmake
|
2019-12-10 20:37:31 +08:00
|
|
|
index cd00d70..0e50512 100644
|
2019-09-30 04:07:50 +08:00
|
|
|
--- a/cmake/AlembicIlmBase.cmake
|
|
|
|
+++ b/cmake/AlembicIlmBase.cmake
|
2020-07-28 08:43:23 +08:00
|
|
|
@@ -33,11 +33,17 @@
|
2019-09-30 04:07:50 +08:00
|
|
|
##
|
|
|
|
##-*****************************************************************************
|
|
|
|
|
|
|
|
-FIND_PACKAGE(IlmBase)
|
|
|
|
+FIND_PACKAGE(OpenEXR)
|
|
|
|
|
|
|
|
-IF (ILMBASE_FOUND)
|
|
|
|
+IF (OPENEXR_FOUND)
|
|
|
|
SET(ALEMBIC_ILMBASE_FOUND 1 CACHE STRING "Set to 1 if IlmBase is found, 0 otherwise")
|
|
|
|
|
|
|
|
+ set(ALEMBIC_ILMBASE_INCLUDE_DIRECTORY ${OpenEXR_INCLUDE_DIRS}/OpenEXR)
|
|
|
|
+ set(ALEMBIC_ILMBASE_HALF_LIB ${OPENEXR_HALF_LIBRARY})
|
|
|
|
+ set(ALEMBIC_ILMBASE_IEX_LIB ${OPENEXR_IEX_LIBRARY})
|
2020-07-28 08:43:23 +08:00
|
|
|
+ set(ALEMBIC_ILMBASE_IEXMATH_LIB ${OPENEXR_IEXMATH_LIBRARY} ${OPENEXR_IMATH_LIBRARY})
|
2019-09-30 04:07:50 +08:00
|
|
|
+ set(ALEMBIC_ILMBASE_ILMTHREAD_LIB ${OPENEXR_ILMTHREAD_LIBRARY})
|
2020-07-28 08:43:23 +08:00
|
|
|
+ set(ALEMBIC_ILMBASE_IMATH_LIB ${OPENEXR_IMATH_LIBRARY})
|
2019-09-30 04:07:50 +08:00
|
|
|
SET(ALEMBIC_ILMBASE_LIBS
|
|
|
|
${ALEMBIC_ILMBASE_IMATH_LIB}
|
|
|
|
${ALEMBIC_ILMBASE_ILMTHREAD_LIB}
|
2019-12-10 20:37:31 +08:00
|
|
|
@@ -45,9 +59,9 @@ IF (ILMBASE_FOUND)
|
|
|
|
${ALEMBIC_ILMBASE_HALF_LIB}
|
|
|
|
)
|
|
|
|
|
|
|
|
- if (${ALEMBIC_ILMBASE_IEXMATH_LIB})
|
|
|
|
+ if (ALEMBIC_ILMBASE_IEXMATH_LIB)
|
|
|
|
SET(ALEMBIC_ILMBASE_LIBS ${ALEMBIC_ILMBASE_LIBS} ${ALEMBIC_ILMBASE_IEXMATH_LIB})
|
|
|
|
- endif (${ALEMBIC_ILMBASE_IEXMATH_LIB})
|
|
|
|
+ endif (ALEMBIC_ILMBASE_IEXMATH_LIB)
|
|
|
|
|
|
|
|
ELSE()
|
|
|
|
SET(ALEMBIC_ILMBASE_FOUND 0 CACHE STRING "Set to 1 if IlmBase is found, 0 otherwise")
|
2019-09-30 04:07:50 +08:00
|
|
|
diff --git a/cmake/AlembicOpenEXR.cmake b/cmake/AlembicOpenEXR.cmake
|
|
|
|
index 0833b32..a9180cd 100644
|
|
|
|
--- a/cmake/AlembicOpenEXR.cmake
|
|
|
|
+++ b/cmake/AlembicOpenEXR.cmake
|
2020-07-28 08:43:23 +08:00
|
|
|
@@ -38,8 +38,8 @@
|
2019-09-30 04:07:50 +08:00
|
|
|
FIND_PACKAGE( OpenEXR )
|
|
|
|
|
|
|
|
IF( OPENEXR_FOUND )
|
|
|
|
- SET( ALEMBIC_OPENEXR_INCLUDE_PATH ${OPENEXR_INCLUDE_PATHS} )
|
|
|
|
+ SET( ALEMBIC_OPENEXR_INCLUDE_PATH ${OPENEXR_INCLUDE_PATHS}/OpenEXR )
|
|
|
|
SET( ALEMBIC_OPENEXR_LIBRARIES ${OPENEXR_LIBRARIES} )
|
|
|
|
# SET( ALEMBIC_OPENEXR_DEFINITIONS ${OPENEXR_DEFINITIONS} )
|
|
|
|
|
|
|
|
SET( ALEMBIC_OPENEXR_FOUND 1 CACHE STRING "Set to 1 if OpenEXR is found, 0 otherwise" )
|