[Cmake-commits] [cmake-commits] hoffman committed OtherTests.cmake 1.4 1.5

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Sep 26 17:50:44 EDT 2008


Update of /cvsroot/CMake/CMake/Utilities/cmcurl-7.19.0/CMake
In directory public:/mounts/ram/cvs-serv4508/CMake

Modified Files:
	OtherTests.cmake 
Log Message:
ENH: fix suffix stuff


Index: OtherTests.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Utilities/cmcurl-7.19.0/CMake/OtherTests.cmake,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** OtherTests.cmake	26 Sep 2008 18:45:43 -0000	1.4
--- OtherTests.cmake	26 Sep 2008 21:50:41 -0000	1.5
***************
*** 45,49 ****
      return()
    endif(DEFINED curl_typeof_curl_off_t)
-   message("${size}")
    foreach(type ${${trytypes}}) 
      # force the try compile to try until it works
--- 45,48 ----
***************
*** 83,87 ****
    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}") 
  endif(curl_show_typeof_status)
  
--- 82,86 ----
    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}") 
  endif(curl_show_typeof_status)
  
***************
*** 140,146 ****
  
  function (check_curl_off_t_suffix )
!   if(DEFINED curl_suffix_curl_off_t)
      return()
!   endif(DEFINED curl_suffix_curl_off_t)
    if(CURL_TYPEOF_CURL_OFF_T MATCHES "long.*long")
      set(curl_test_suffix "LL")
--- 139,146 ----
  
  function (check_curl_off_t_suffix )
!   if(DEFINED CURL_SUFFIX_CURL_OFF_T)
      return()
!   endif()
!   set(CURL_TYPEOF_CURL_OFF_T "long long")
    if(CURL_TYPEOF_CURL_OFF_T MATCHES "long.*long")
      set(curl_test_suffix "LL")
***************
*** 149,153 ****
      set(curl_test_suffix "L")
    endif()
!   if(CURL_TYPEOF_CURL_OFF_T)
      set(curl_test_suffix "")
    endif()
--- 149,153 ----
      set(curl_test_suffix "L")
    endif()
!   if(CURL_TYPEOF_CURL_OFF_T STREQUAL "int")
      set(curl_test_suffix "")
    endif()
***************
*** 185,188 ****
--- 185,192 ----
      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



More information about the Cmake-commits mailing list