diff Resources/CMake/LibPngConfiguration.cmake @ 1472:237d83694d82

avoid public symbols of libpng
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 Jul 2015 17:55:12 +0200
parents 0a67a502c90f
children fbf763bb1fa3
line wrap: on
line diff
--- a/Resources/CMake/LibPngConfiguration.cmake	Thu Jul 30 15:11:14 2015 +0200
+++ b/Resources/CMake/LibPngConfiguration.cmake	Thu Jul 30 17:55:12 2015 +0200
@@ -41,6 +41,9 @@
   add_definitions(
     -DPNG_NO_CONSOLE_IO=1
     -DPNG_NO_STDIO=1
+    # The following declaration avoids "__declspec(dllexport)" in
+    # libpng to prevent publicly exposing its symbols by the DLLs
+    -DPNG_IMPEXP=
     )
 
   source_group(ThirdParty\\Libpng REGULAR_EXPRESSION ${LIBPNG_SOURCES_DIR}/.*)