summaryrefslogtreecommitdiff
path: root/Utilities/cmzlib
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-01 11:38:42 -0400
committerBrad King <brad.king@kitware.com>2006-08-01 11:38:42 -0400
commitab61137eb177d9606ad3fa47b6b08d22b9993279 (patch)
treece57b66cd29b6dc1dab00d196eeeda84e8ef82a2 /Utilities/cmzlib
parent7776d18896bda01c743317dd45fd5c816e8f408a (diff)
downloadcmake-ab61137eb177d9606ad3fa47b6b08d22b9993279.tar.gz
COMP: Fix and/or disable warnings for Borland 5.6 build.
Diffstat (limited to 'Utilities/cmzlib')
-rw-r--r--Utilities/cmzlib/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Utilities/cmzlib/CMakeLists.txt b/Utilities/cmzlib/CMakeLists.txt
index 3dedcd42aa..f359082ccd 100644
--- a/Utilities/cmzlib/CMakeLists.txt
+++ b/Utilities/cmzlib/CMakeLists.txt
@@ -14,6 +14,11 @@ ADD_DEFINITIONS(-DCMZLIB_IN_C)
# Match all headers for dependencies but complain about none.
INCLUDE_REGULAR_EXPRESSION("^.*$")
+# Disable warnings on Borland to avoid changing 3rd party code.
+IF(BORLAND)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
+ENDIF(BORLAND)
+
# source files for zlib
SET(ZLIB_SRCS
adler32.c gzio.c inftrees.c uncompr.c