From 122cd5737f3a2fb590307256a6731de708e7786b Mon Sep 17 00:00:00 2001 From: clanmills Date: Wed, 9 Aug 2017 23:41:42 +0100 Subject: [PATCH] Cosmetic modifications to Pull-21. Fix to ensure Cygwin uses #include --- config/config.h.cmake | 4 ++++ samples/CMakeLists.txt | 1 - src/CMakeLists.txt | 9 ++++----- xmpsdk/CMakeLists.txt | 1 - 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/config/config.h.cmake b/config/config.h.cmake index f2e51a11..865d8b3c 100644 --- a/config/config.h.cmake +++ b/config/config.h.cmake @@ -110,6 +110,10 @@ /* Define to 1 if you have the header file. */ #cmakedefine EXV_HAVE_UNISTD_H 1 +#if !defined( EXV_HAVE_UNISTD_H) && defined(__CYGWIN__) +#define EXV_HAVE_UNISTD_H 1 +#endif + // Definition to indicate if you have the header file. #cmakedefine EXV_HAVE_SYS_MMAN_H diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index edc7feee..d128825b 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -1,5 +1,4 @@ # CMake build system for exiv2 library and executables -# Copyright 2012- Robin Mills # Copyright 2010-2012 Gilles Caulier # Copyright 2008 Patrick Spendrin # Redistribution and use is allowed according to the terms of the BSD license. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2fd53340..27b78a48 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -206,7 +206,6 @@ SET( EXIV2_HDR exiv2app.hpp utils.hpp ) - # connection test application SET( CONNTEST ../samples/conntest.cpp) # exifprint application @@ -217,13 +216,13 @@ SET( REMOTETEST ../samples/remotetest.cpp) ## # modify source lists to suit environment IF(NOT EXV_HAVE_TIMEGM ) - SET( LIBEXIV2_SRC ${LIBEXIV2_SRC} localtime.c ) - SET( EXIV2_SRC ${EXIV2_SRC} localtime.c ) - SET( PATHTEST_SRC ${PATHTEST_SRC} localtime.c ) + SET( LIBEXIV2_SRC ${LIBEXIV2_SRC} localtime.c ) + SET( EXIV2_SRC ${EXIV2_SRC} localtime.c ) + SET( PATHTEST_SRC ${PATHTEST_SRC} localtime.c ) ENDIF() IF( MSVC ) - SET( EXIV2_SRC ${EXIV2_SRC} getopt_win32.c ) + SET( EXIV2_SRC ${EXIV2_SRC} getopt_win32.c ) SET( LIBEXIV2_SRC ${LIBEXIV2_SRC} getopt_win32.c ) ENDIF( MSVC ) diff --git a/xmpsdk/CMakeLists.txt b/xmpsdk/CMakeLists.txt index d883f4d8..278f5407 100644 --- a/xmpsdk/CMakeLists.txt +++ b/xmpsdk/CMakeLists.txt @@ -1,5 +1,4 @@ # CMake build system for exiv2 library and executables -# Copyright 2012- Robin Mills # Copyright 2010-2012 Gilles Caulier # Copyright 2008 Patrick Spendrin