summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-01 15:38:42 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-01 15:38:42 (GMT)
commitab61137eb177d9606ad3fa47b6b08d22b9993279 (patch)
treece57b66cd29b6dc1dab00d196eeeda84e8ef82a2 /Utilities/cmcurl
parent7776d18896bda01c743317dd45fd5c816e8f408a (diff)
downloadCMake-ab61137eb177d9606ad3fa47b6b08d22b9993279.zip
CMake-ab61137eb177d9606ad3fa47b6b08d22b9993279.tar.gz
CMake-ab61137eb177d9606ad3fa47b6b08d22b9993279.tar.bz2
COMP: Fix and/or disable warnings for Borland 5.6 build.
Diffstat (limited to 'Utilities/cmcurl')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index 72c157d..c32504f 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -18,6 +18,11 @@ SET(OPERATING_SYSTEM "${CMAKE_SYSTEM_NAME}")
SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
SET(CMAKE_REQUIRED_FLAGS ${CMAKE_ANSI_CFLAGS})
+# Disable warnings on Borland to avoid changing 3rd party code.
+IF(BORLAND)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
+ENDIF(BORLAND)
+
# If we are on AIX, do the _ALL_SOURCE magic
IF(${CMAKE_SYSTEM_NAME} MATCHES AIX)
SET(_ALL_SOURCE 1)