The guilty part in the makefile:
GET_FILENAME_COMPONENT(ZLIB_DLL_NAME ${ZLIB_LIBRARY} NAME_WE)
This does not work as the lib and dll have different names when the
official zlib source is compiled, at least on MSVC2010/64.
If you only want to support a cmake-built zlib then it should be
renamed to zlib1.dll. If support for an arbitrary zlib build is
required I propose to use a separate variable for the lib and dll and
have the user provide both.
Or eliminate copying completely, just informing the user to do it. The
latter would have the benefit of copying zlib dlls from proper
configuration build folders (not just one fixed for all).
If there is any interest, I can provide a patch.
Dominik
On Wed, Mar 2, 2011 at 1:02 PM, Dominik Szczerba <[email protected]> wrote:
> 1> Copying C:/build/zlib-1.2.5/RelWithDebInfo/zlib.dll to
> C:/build/hdf5-1.8.6/bin/RelWithDebInfo/
> 1> Error copying file (if different) from
> "C:/build/zlib-1.2.5/RelWithDebInfo/zlib.dll" to
> "C:/build/hdf5-1.8.6/bin/RelWithDebInfo/".
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):
> error MSB6006: "cmd.exe" exited with code 1.
> 1>
> 1>Build FAILED.
>
>
> The one created by zlib is called zlib1.dll (lib file still called zlib.lib)
>
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org