Skip to content

Commit 94e1fee

Browse files
committed
do not use static hdf5 on conda-build
1 parent a2a92cd commit 94e1fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ set(HIGHFIVE_BUILD_DOCS OFF CACHE INTERNAL BOOL)
155155
set(HIGHFIVE_USE_BOOST OFF CACHE INTERNAL BOOL)
156156
set(HIGHFIVE_UNIT_TESTS OFF CACHE INTERNAL BOOL)
157157
set(HIGHFIVE_HAS_CONCEPTS OFF CACHE INTERNAL BOOL)
158-
if(WIN32 OR APPLE)
158+
if((WIN32 OR APPLE) AND NOT DEFINED ENV{CONDA_BUILD})
159159
set(HDF5_USE_STATIC_LIBRARIES ON CACHE INTERNAL BOOL)
160160
set(HIGHFIVE_STATIC_HDF5 ON CACHE INTERNAL BOOL)
161161
endif()

0 commit comments

Comments
 (0)