MinGW: undefined reference to mkgmtime64 in build of 3.18
I'm trying to build cmake and associated docs and the compilation of cmcldeps fails due to undefined references to __imp_mkgmtime64 . Compilation stops there. Using MinGW-W64 GCC 8.1 on Windows 10 with CMake source 3.18
[ 85%] Linking CXX executable ..\bin\cmcldeps.exe
../Utilities/cmlibarchive/libarchive/libcmlibarchive.a(archive_read_support_format_iso9660.c.obj):archive_read_support_format_iso9660.c:(.text+0x5597): undefined reference to `_imp___mkgmtime64'
../Utilities/cmlibarchive/libarchive/libcmlibarchive.a(archive_read_support_format_warc.c.obj):archive_read_support_format_warc.c:(.text+0xa06): undefined reference to `_imp___mkgmtime64'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [Source\CMakeFiles\cmcldeps.dir\build.make:103: bin/cmcldeps.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2269: Source/CMakeFiles/cmcldeps.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2
`
Edited by Brad King