From edc3994cfd8551a85f6c76ef036d7b38d873a670 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 9 Nov 2009 07:18:26 -0600 Subject: [PATCH] [master] In CMakeLists.txt, add "-DPNG_CONFIGURE_LIBPNG" to the definitions. --- ANNOUNCE | 1 + CHANGES | 1 + CMakeLists.txt | 3 +++ 3 files changed, 5 insertions(+) diff --git a/ANNOUNCE b/ANNOUNCE index 1beab6e7..404f67af 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -144,6 +144,7 @@ version 1.2.41beta16 [November 9, 2009] Only #define PNG_DEPSTRUCT, etc. in pngconf.h if not already defined. version 1.2.41beta17 [November 9, 2009] + Updated CMakeLists.txt to add "-DPNG_CONFIGURE_LIBPNG" to the definitions. Send comments/corrections/commendations to png-mng-implement at lists.sf.net diff --git a/CHANGES b/CHANGES index 524c5cef..da3a6434 100644 --- a/CHANGES +++ b/CHANGES @@ -2575,6 +2575,7 @@ version 1.2.41beta16 [November 9, 2009] Only #define PNG_DEPSTRUCT, etc. in pngconf.h if not already defined. version 1.2.41beta17 [November 9, 2009] + Updated CMakeLists.txt to add "-DPNG_CONFIGURE_LIBPNG" to the definitions. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CMakeLists.txt b/CMakeLists.txt index ea48c975..13f396b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,6 +116,9 @@ set(pngtest_sources pngtest.c ) # SOME NEEDED DEFINITIONS + +add_definitions(-DPNG_CONFIGURE_LIBPNG) + if(MSVC) add_definitions(-DPNG_NO_MODULEDEF -D_CRT_SECURE_NO_DEPRECATE) endif(MSVC)