diff --git a/CMakeLists.txt b/CMakeLists.txt
index dffb77338..89c3a105a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,9 +46,6 @@ set(PNG_DEBUG_POSTFIX
"d"
CACHE STRING "Postfix to append to library file names under the Debug configuration")
-# Allow the users to switch on/off debug logging.
-option(PNG_DEBUG "Enable debug logging" OFF)
-
# Allow the users to import their own extra configuration settings.
# Those settings can be either passed via DFA_XTRA if they are in DFA form
# (such as "pngusr.dfa"), or via PNG_LIBCONF_HEADER if they are in prebuilt
@@ -682,10 +679,6 @@ set(png_fix_itxt_sources
contrib/tools/png-fix-itxt.c
)
-if(PNG_DEBUG)
- add_definitions(-DPNG_DEBUG)
-endif()
-
# Now build our targets.
# Initialize the list of libpng library targets.
diff --git a/projects/visualc71/libpng.vcproj b/projects/visualc71/libpng.vcproj
index 608ec4e6b..3bdebb359 100644
--- a/projects/visualc71/libpng.vcproj
+++ b/projects/visualc71/libpng.vcproj
@@ -66,7 +66,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..;..\..\..\zlib"
- PreprocessorDefinitions="WIN32;_DEBUG;DEBUG;PNG_DEBUG=1;PNG_BUILD_DLL;ZLIB_DLL;_CRT_SECURE_NO_WARNINGS"
+ PreprocessorDefinitions="WIN32;_DEBUG;DEBUG;PNG_BUILD_DLL;ZLIB_DLL;_CRT_SECURE_NO_WARNINGS"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="3"
@@ -91,7 +91,7 @@
Name="VCPreLinkEventTool"/>