vendor/libgit2/cmake/Modules/FindStatNsec.cmake in rugged-0.28.3.1 vs vendor/libgit2/cmake/Modules/FindStatNsec.cmake in rugged-0.28.4

- old
+ new

@@ -1,5 +1,7 @@ +INCLUDE(FeatureSummary) + CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtim "sys/types.h;sys/stat.h" HAVE_STRUCT_STAT_ST_MTIM LANGUAGE C) CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtimespec "sys/types.h;sys/stat.h" HAVE_STRUCT_STAT_ST_MTIMESPEC LANGUAGE C) CHECK_STRUCT_HAS_MEMBER("struct stat" st_mtime_nsec sys/stat.h @@ -15,6 +17,10 @@ SET( HAVE_STRUCT_STAT_NSEC ON ) ENDIF() IF (HAVE_STRUCT_STAT_NSEC OR WIN32) OPTION( USE_NSEC "Care about sub-second file mtimes and ctimes" ON ) +ELSE() + SET(USE_NSEC OFF) ENDIF() + +ADD_FEATURE_INFO(nanoseconds USE_NSEC "whether to use sub-second file mtimes and ctimes")