summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-06-11 16:52:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-06-11 16:52:19 (GMT)
commitb17c6ac90569584b342d10bf73f87965538e5f81 (patch)
tree91e642f2b8b87860583452d83133e2d3ecee94b5 /Source/CTest
parent94847d0aa74a0964a461f9f42d319815fb30becf (diff)
downloadCMake-b17c6ac90569584b342d10bf73f87965538e5f81.zip
CMake-b17c6ac90569584b342d10bf73f87965538e5f81.tar.gz
CMake-b17c6ac90569584b342d10bf73f87965538e5f81.tar.bz2
fix bug on mac if COMPILE FLAGS are not set then you end up with NOTFOUND as a compile flag.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/Curl/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index 8c0903d..bf4edf0 100644
--- a/Source/CTest/Curl/CMakeLists.txt
+++ b/Source/CTest/Curl/CMakeLists.txt
@@ -417,8 +417,13 @@ 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)
+ IF(MPRINTF_COMPILE_FLAGS)
+ SET(MPRINTF_COMPILE_FLAGS "${MPRINTF_COMPILE_FLAGS} -Wno-long-double")
+ ELSE(MPRINTF_COMPILE_FLAGS)
+ SET(MPRINTF_COMPILE_FLAGS "-Wno-long-double")
+ ENDIF(MPRINTF_COMPILE_FLAGS)
SET_SOURCE_FILES_PROPERTIES(mprintf.c PROPERTIES
- COMPILE_FLAGS "${MPRINTF_COMPILE_FLAGS} -Wno-long-double")
+ COMPILE_FLAGS ${MPRINTF_COMPILE_FLAGS})
ENDIF(CMAKE_COMPILER_IS_GNUCC AND APPLE)
# The rest of the build