mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 09:29:00 +08:00
31 lines
973 B
Diff
31 lines
973 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index ce0a8e0..229fc77 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -226,7 +226,24 @@ INCLUDE_DIRECTORIES(${ALEMBIC_ILMBASE_INCLUDE_DIRECTORY})
|
|
IF (USE_HDF5)
|
|
FIND_PACKAGE(ZLIB REQUIRED)
|
|
SET(ALEMBIC_WITH_HDF5 "1")
|
|
- INCLUDE("./cmake/AlembicHDF5.cmake")
|
|
+ #INCLUDE("./cmake/AlembicHDF5.cmake")
|
|
+ FIND_LIBRARY(HDF5_LIBRARIES_RELEASE
|
|
+ NAMES hdf5
|
|
+ PATHS ${HDF5_ROOT}/lib
|
|
+ )
|
|
+ MESSAGE(STATUS ${HDF5_LIBRARIES_RELEASE})
|
|
+ FIND_LIBRARY(HDF5_LIBRARIES_DEBUG
|
|
+ NAMES hdf5_D
|
|
+ PATHS ${HDF5_ROOT}/debug/lib
|
|
+ )
|
|
+ MESSAGE(STATUS ${HDF5_LIBRARIES_DEBUG})
|
|
+ SET(HDF5_LIBRARIES
|
|
+ optimized ${HDF5_LIBRARIES_RELEASE}
|
|
+ debug ${HDF5_LIBRARIES_DEBUG}
|
|
+ )
|
|
+ SET(HDF5_INCLUDE_DIRS
|
|
+ ${HDF5_ROOT}/include
|
|
+ )
|
|
INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIRS})
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DH5_USE_18_API")
|
|
ENDIF()
|