summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-09-26 21:50:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-09-26 21:50:41 (GMT)
commitb25f4b76c7f9c493b8341ddb02310c1af018ad77 (patch)
treea2f483a903a0e26293a2e479b2db91ddd7a17014 /Utilities
parent1a9ca2168499aa8541facfed141b75d900faadcb (diff)
downloadCMake-b25f4b76c7f9c493b8341ddb02310c1af018ad77.zip
CMake-b25f4b76c7f9c493b8341ddb02310c1af018ad77.tar.gz
CMake-b25f4b76c7f9c493b8341ddb02310c1af018ad77.tar.bz2
ENH: fix suffix stuff
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl-7.19.0/CMake/OtherTests.cmake14
1 files changed, 9 insertions, 5 deletions
diff --git a/Utilities/cmcurl-7.19.0/CMake/OtherTests.cmake b/Utilities/cmcurl-7.19.0/CMake/OtherTests.cmake
index c9b0095..bcb714b 100644
--- a/Utilities/cmcurl-7.19.0/CMake/OtherTests.cmake
+++ b/Utilities/cmcurl-7.19.0/CMake/OtherTests.cmake
@@ -44,7 +44,6 @@ function(curl_find_curl_off_t trytypes size)
if(DEFINED curl_typeof_curl_off_t)
return()
endif(DEFINED curl_typeof_curl_off_t)
- message("${size}")
foreach(type ${${trytypes}})
# force the try compile to try until it works
set(curl_typeof_curl_off_t "UNKNOWN")
@@ -82,7 +81,7 @@ curl_find_curl_off_t(try_types_2 2 )
if(curl_show_typeof_status)
message(STATUS "curl_typeof_curl_off_t = ${curl_typeof_curl_off_t}")
check_type_size("${CURL_TYPEOF_CURL_OFF_T}" CURL_SIZEOF_CURL_OFF_T)
- message(STATUS "sizeof curl_typeof_curl_off_t = ${CURL_SIZEOF_CURL_OFF_T}")
+ message(STATUS "sizeof ${curl_typeof_curl_off_t} = ${CURL_SIZEOF_CURL_OFF_T}")
endif(curl_show_typeof_status)
@@ -139,16 +138,17 @@ else(curl_pri_macro)
endif(curl_pri_macro)
function (check_curl_off_t_suffix )
- if(DEFINED curl_suffix_curl_off_t)
+ if(DEFINED CURL_SUFFIX_CURL_OFF_T)
return()
- endif(DEFINED curl_suffix_curl_off_t)
+ endif()
+ set(CURL_TYPEOF_CURL_OFF_T "long long")
if(CURL_TYPEOF_CURL_OFF_T MATCHES "long.*long")
set(curl_test_suffix "LL")
endif()
if(CURL_TYPEOF_CURL_OFF_T STREQUAL "long")
set(curl_test_suffix "L")
endif()
- if(CURL_TYPEOF_CURL_OFF_T)
+ if(CURL_TYPEOF_CURL_OFF_T STREQUAL "int")
set(curl_test_suffix "")
endif()
if(CURL_TYPEOF_CURL_OFF_T STREQUAL "__int64")
@@ -184,6 +184,10 @@ function (check_curl_off_t_suffix )
set(CURL_SUFFIX_CURL_OFF_TU ${curl_test_suffix_u} CACHE INTERNAL "unsigned suffix for off_t")
endif(curl_suffix_curl_off_t_test)
endforeach(suffix)
+ if(NOT DEFINED CURL_SUFFIX_CURL_OFF_T)
+ set(CURL_SUFFIX_CURL_OFF_T "" CACHE INTERNAL "signed suffix for off_t")
+ set(CURL_SUFFIX_CURL_OFF_TU "" CACHE INTERNAL "unsigned suffix for off_t")
+ endif()
endfunction(check_curl_off_t_suffix)
# find the suffix to add to a literal number for the off_t type
check_curl_off_t_suffix()