The issue lies in the fortran/src/CMakeLists.txt file and the
hl/fortran/src/CMakeLists.txt file. This block should be:
if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
file (MAKE_DIRECTORY "${HDF5_HL_F90_SRC_BINARY_DIR}/shared")
if (WIN32)
set (MODSH_BUILD_DIR
${CMAKE_Fortran_MODULE_DIRECTORY}/shared/${CMAKE_CFG_INTDIR})
else (WIN32)
set (MODSH_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
endif (WIN32)
endif (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
if (WIN32)
set (MOD_BUILD_DIR
${CMAKE_Fortran_MODULE_DIRECTORY}/static/${CMAKE_CFG_INTDIR})
else (WIN32)
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
endif (WIN32)
Note the use of CMAKE_CFG_INTDIR instead of CMAKE_BUILD_TYPE.
CMAKE_BUILD_TYPE does not exist for Xcode or Visual Studio. This page (
https://cmake.org/Wiki/CMake_Useful_Variables) explains the use of
CMAKE_CFG_INTDIR
Can we get this put into the next release or an upcoming patch release?
Thanks
mike jackson
_________________________________________________________
Mike Jackson [email protected]
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
On Tue, Dec 20, 2016 at 4:27 PM, Michael Jackson <
[email protected]> wrote:
> I just tried to build HDF5 1.8.18 with Visual Studio 2015 on Windows 7 x64
> Pro machine and during the install we get an error because the install
> command is looking for $BUILD/Bin/shared/*.mod where as the actual files
> are in $BUILD/Bin/shared/Debug/*.mod.
>
> Has anyone else seen this issue?
>
> Thanks
> --
> Michael A. Jackson
> BlueQuartz Software, LLC
> [e]: [email protected]
>
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5