Bo Peng wrote: > Hi, Peter, > > Does cmake define HAVE_CHMOD? Scons detects chmod under msvc and > defines HAVE_CHMOD. However, in src/support/copy.C, chmod is used with > mode_t which does not exist under windows. > > HAVE_MODE_T may be needed. > > Bo >
No, after discussing it with Georg I've disabled chmod on Windows, config.h.cmake: #ifdef _MSC_VER #pragma warning( disable : 4800 ) //: forcing value to bool 'true' or 'false' (performance warning) #pragma warning( disable : 4996 ) //: was declared deprecated #ifdef HAVE_CHMOD #undef HAVE_CHMOD #endif #endif -- Peter Kümmel