From ed2d585d9e0a86533d8fd223abae6d9e8a9bc039 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Tue, 16 Sep 2014 21:15:09 +0000 Subject: [PATCH] Issue: #991 (Windows build broken (CMake+svn_version.sh). Thank You, Daniel for the patch. --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b9815fe0..9b98e405 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -63,7 +63,6 @@ SET( LIBEXIV2_HDR asfvideo.hpp preview.hpp properties.hpp psdimage.hpp - svn_version.h quicktimevideo.hpp rafimage.hpp riffvideo.hpp @@ -149,6 +148,12 @@ IF( EXIV2_ENABLE_PNG ) ENDIF( ZLIB_FOUND ) ENDIF( EXIV2_ENABLE_PNG ) +IF( NOT MSVC ) + SET( LIBEXIV2_HDR ${LIBEXIV2_HDR} + svn_version.h + ) +ENDIF() + ## # add xmp source if xmp is requested and xmp library not built IF( EXIV2_ENABLE_XMP )