# HG changeset patch # User Sebastien Jodogne # Date 1438271712 -7200 # Node ID 237d83694d82b57aa239c388e92ffe5dc989169d # Parent 0f8484114557ad9e58de5cc6db4411a82b77a6c2 avoid public symbols of libpng diff -r 0f8484114557 -r 237d83694d82 Resources/CMake/LibPngConfiguration.cmake --- 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}/.*)