summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-06-09 21:50:13 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-06-09 21:50:13 (GMT)
commit9e85e3a27ec7c4faf9a81086503ae6138683ac13 (patch)
tree113161fcafc5d5433459cb1f076e99094a6196c0 /Source
parent1a6030c6a6261f399800d905061b656ae11d43a1 (diff)
downloadCMake-9e85e3a27ec7c4faf9a81086503ae6138683ac13.zip
CMake-9e85e3a27ec7c4faf9a81086503ae6138683ac13.tar.gz
CMake-9e85e3a27ec7c4faf9a81086503ae6138683ac13.tar.bz2
ERR: Disable long double warnings on xlC for the Mac.
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/Curl/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index 9025ff5..8c0903d 100644
--- a/Source/CTest/Curl/CMakeLists.txt
+++ b/Source/CTest/Curl/CMakeLists.txt
@@ -414,6 +414,13 @@ ELSE(RETSIGTYPE_TEST)
SET(RETSIGTYPE int)
ENDIF(RETSIGTYPE_TEST)
+IF(CMAKE_COMPILER_IS_GNUCC AND APPLE)
+ # The Mac version of GCC warns about use of long double. Disable it.
+ GET_SOURCE_FILE_PROPERTY(MPRINTF_COMPILE_FLAGS mprintf.c COMPILE_FLAGS)
+ SET_SOURCE_FILES_PROPERTIES(mprintf.c PROPERTIES
+ COMPILE_FLAGS "${MPRINTF_COMPILE_FLAGS} -Wno-long-double")
+ENDIF(CMAKE_COMPILER_IS_GNUCC AND APPLE)
+
# The rest of the build
INCLUDE_DIRECTORIES(${LIBCURL_SOURCE_DIR})