Mercurial > hg > orthanc
changeset 1472:237d83694d82
avoid public symbols of libpng
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Jul 2015 17:55:12 +0200 |
parents | 0f8484114557 |
children | 0631b56c35eb |
files | Resources/CMake/LibPngConfiguration.cmake |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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}/.*)