diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-01-10 10:57:39 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-01-10 10:57:39 +0100 |
commit | 14f8cfa6dc42c2c7a5f8332e335d427547305457 (patch) | |
tree | 2a1bdeeb0171af1ef8c0af0cfbd546674895fb15 | |
parent | 98e6629154044e4ab1ee7cff8351c7ebcb131e88 (diff) | |
download | curl-bagder/cmake-variadic-macros.tar.gz |
cmake: define HAVE_VARIADIC_MACROS_C99bagder/cmake-variadic-macros
This should ideally *check* what variadic macros that actually
work. This is mostlu to improve the current situation where no define at
all is set for this.
Fixes #3142
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index db443de31..39a965324 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -1072,6 +1072,10 @@ else() set(RETSIGTYPE int) endif() +# TODO: this should *check* which variadic macros that work and set the +# appropriate define. +set(HAVE_VARIADIC_MACROS_C99 1) + if(CMAKE_COMPILER_IS_GNUCC AND APPLE) include(CheckCCompilerFlag) check_c_compiler_flag(-Wno-long-double HAVE_C_FLAG_Wno_long_double) |