Handle HAVE_SYS_STAT_H variable in the new cmake file
This commit is contained in:
@@ -71,7 +71,6 @@ ENDIF( EXIV2_ENABLE_COMMERCIAL )
|
||||
# checking for Header files
|
||||
check_include_file( "inttypes.h" have_inttypes_h )
|
||||
check_include_file( "wchar.h" HAVE_WCHAR_H )
|
||||
check_include_file( "sys/stat.h" HAVE_SYS_STAT_H )
|
||||
check_include_file( "sys/time.h" HAVE_SYS_TIME_H )
|
||||
check_include_file( "sys/types.h" HAVE_SYS_TYPES_H )
|
||||
check_include_file( "regex.h" HAVE_REGEX )
|
||||
@@ -101,8 +100,7 @@ IF( NOT MSVC )
|
||||
SET( HAVE_PID_T TRUE )
|
||||
ENDIF( NOT MSVC )
|
||||
|
||||
SET( EXV_SYMBOLS HAVE_SYS_STAT_H
|
||||
HAVE_SYS_TIME_H
|
||||
SET( EXV_SYMBOLS HAVE_SYS_TIME_H
|
||||
HAVE_SYS_TYPES_H
|
||||
HAVE_TIMEGM
|
||||
HAVE_VPRINTF
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
// Definition to indicate if you have the `munmap' function.
|
||||
#cmakedefine EXV_HAVE_MUNMAP
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#cmakedefine EXV_HAVE_SYS_STAT_H 1
|
||||
// Definition to indicate if you have the <sys/stat.h> header file.
|
||||
#cmakedefine EXV_HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#cmakedefine EXV_HAVE_SYS_TIME_H 1
|
||||
|
||||
@@ -37,6 +37,7 @@ check_include_file( "stdint.h" EXV_HAVE_STDINT_H )
|
||||
check_include_file( "stdlib.h" EXV_HAVE_STDLIB_H )
|
||||
check_include_file( "strings.h" EXV_HAVE_STRINGS_H )
|
||||
check_include_file( "sys/mman.h" EXV_HAVE_SYS_MMAN_H )
|
||||
check_include_file( "sys/stat.h" EXV_HAVE_SYS_STAT_H )
|
||||
|
||||
if (NOT EXV_HAVE_LIBINTL_H)
|
||||
set(EXV_ENABLE_NLS 0)
|
||||
|
||||
Reference in New Issue
Block a user