From b46c8efa5f2296d8e4b09f98e7d90e3497567c81 Mon Sep 17 00:00:00 2001
From: xantares <xantares09@hotmail.com>
Date: Fri, 3 Oct 2014 17:49:15 +0200
Subject: [PATCH] Do not install add libraries in cygwin nor mingw
---
src/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9d2a604..7ee1c30 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -79,11 +79,11 @@ if(LIBHPDF_STATIC)
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
- if(WIN32 AND NOT CYGWIN)
+ if(MSVC)
foreach(addlib ${ADDITIONAL_LIBRARIES})
install(FILES ${addlib} DESTINATION lib)
endforeach(addlib)
- endif(WIN32 AND NOT CYGWIN)
+ endif()
endif(LIBHPDF_STATIC)
if(LIBHPDF_SHARED)
add_library(${LIBHPDF_NAME} SHARED ${LIBHPDF_SRCS})
--
2.21.1 (Apple Git-122.3)