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)