summaryrefslogtreecommitdiffstats
path: root/Utilities/cmxmlrpc/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-11-16 19:06:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-11-16 19:06:40 (GMT)
commitbeaea73fa0ffbd5f2fbc839e9c9135f9bc0b3280 (patch)
tree2d5339edfcc8275fb9111fa2de5ba210757bfeb1 /Utilities/cmxmlrpc/CMakeLists.txt
parent96bf9b372a391b428fb0ac44d566729fd6294cdf (diff)
downloadCMake-beaea73fa0ffbd5f2fbc839e9c9135f9bc0b3280.zip
CMake-beaea73fa0ffbd5f2fbc839e9c9135f9bc0b3280.tar.gz
CMake-beaea73fa0ffbd5f2fbc839e9c9135f9bc0b3280.tar.bz2
ENH: add a try compile for va_copy
Diffstat (limited to 'Utilities/cmxmlrpc/CMakeLists.txt')
-rw-r--r--Utilities/cmxmlrpc/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmxmlrpc/CMakeLists.txt b/Utilities/cmxmlrpc/CMakeLists.txt
index a29e0bd..e3f42c8 100644
--- a/Utilities/cmxmlrpc/CMakeLists.txt
+++ b/Utilities/cmxmlrpc/CMakeLists.txt
@@ -44,6 +44,8 @@ INCLUDE (TryCompileFromSource)
SET(HEADER_INCLUDES "${CURRENT_INCLUDES}")
TRY_COMPILE_FROM_SOURCE("va_list list1, list2; list1 = list2"
VA_LIST_ISNOT_ARRAY_DEFINE)
+TRY_COMPILE_FROM_SOURCE("va_list list1, list2; va_copy(list1, list2);"
+ HAS_VA_COPY)
SET(VA_LIST_IS_ARRAY_DEFINE 0)
IF(NOT VA_LIST_ISNOT_ARRAY_DEFINE)
SET(VA_LIST_IS_ARRAY_DEFINE 1)