summaryrefslogtreecommitdiff
path: root/qpid/cpp/CMakeModules/CheckSizeTNativeType.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/CMakeModules/CheckSizeTNativeType.cmake')
-rw-r--r--qpid/cpp/CMakeModules/CheckSizeTNativeType.cmake59
1 files changed, 0 insertions, 59 deletions
diff --git a/qpid/cpp/CMakeModules/CheckSizeTNativeType.cmake b/qpid/cpp/CMakeModules/CheckSizeTNativeType.cmake
deleted file mode 100644
index fb515cd149..0000000000
--- a/qpid/cpp/CMakeModules/CheckSizeTNativeType.cmake
+++ /dev/null
@@ -1,59 +0,0 @@
-#
-# $Id $
-#
-# Author(s): Anton Deguet
-# Created on: 2011
-#
-# (C) Copyright 2011 Johns Hopkins University (JHU), All Rights
-# Reserved.
-#
-# --- begin cisst license - do not edit ---
-#
-# This software is provided "as is" under an open source license, with
-# no warranty. The complete license can be found in license.txt and
-# http://www.cisst.org/cisst/license.txt.
-#
-# --- end cisst license ---
-
-function (check_size_t_native_type VARIABLE)
- # make sure we don't test over and over
- if ("${VARIABLE}" MATCHES "^${VARIABLE}$")
- message (STATUS "Checking to see if size_t is a native type")
- set (SOURCE
- "#include <vector>
- char method(unsigned int p) {
- return 'u';
- }
- char method(unsigned long long int p) {
- return 'l';
- }
- char method(size_t p) {
- return 's';
- }
- int main(void) {}")
-
- file (WRITE
- "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/test_size_t.cpp"
- "${SOURCE}\n")
-
- try_compile (${VARIABLE}
- ${CMAKE_BINARY_DIR}
- "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/test_size_t.cpp"
- OUTPUT_VARIABLE OUTPUT)
-
- # report using message and log files
- if (${VARIABLE})
- message (STATUS "Checking to see if size_t is a native type - yes")
- file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
- "Determining if size_t is a native type passed with "
- "the following output:\n${OUTPUT}\n\n")
- else (${VARIABLE})
- message (STATUS "Checking to see if size_t is a native type - no")
- file (APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
- "Determining if size_t is a native type passed with "
- "the following output:\n${OUTPUT}\n\n")
- endif (${VARIABLE})
-
- endif ("${VARIABLE}" MATCHES "^${VARIABLE}$")
-
-endfunction (check_size_t_native_type VARIABLE)