CMake: Once again, don't use find_package to get hardcoded libraries
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Aug 2016 10:37:25 +0000 (12:37 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Aug 2016 10:38:09 +0000 (12:38 +0200)
CMakeLists.txt

index d32c5adaac43d390a8d47702e2199d80b4eb686a..281aa52cae3e34d3623a738c5cb44909c49a2d9d 100644 (file)
@@ -2091,17 +2091,11 @@ elseif(APPLE)
        endif()
 
        if(WITH_ALEMBIC)
-               set(ALEMBIC_ROOT_DIR ${LIBDIR}/alembic)
-               find_package(Alembic)
-               if(WITH_ALEMBIC_HDF5)
-                       set(HDF5_ROOT_DIR ${LIBDIR}/hdf5)
-                       find_package(HDF5)
-               endif()
-
-               if(NOT ALEMBIC_FOUND OR (WITH_ALEMBIC_HDF5 AND NOT HDF5_FOUND))
-                       set(WITH_ALEMBIC OFF)
-                       set(WITH_ALEMBIC_HDF5 OFF)
-               endif()
+               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 Alembic)
        endif()
 
        if(WITH_OPENSUBDIV)