diff options
author | João Valverde <j@v6e.pt> | 2021-09-22 15:57:43 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-09-22 16:34:37 +0000 |
commit | fa525649bea7ee6ec14958e123b386755d0518ac (patch) | |
tree | b1ac2bd68dbd5b3a7990b43ae6067c63a3c03332 /ConfigureChecks.cmake | |
parent | 9bce34ca67d1f057c2fcb910c030d2a160c69ade (diff) |
CMake: Try to set a required try_run() definition in a more idiomatic way
This is applicable to every test (if we had more), not just HAVE_C99_VSNPRINTF.
Could also be a #define but let's go with this for now. This takes
advantage of the stack based design of CMakePushCheckState.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index f81abeb258..328292e699 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -107,10 +107,6 @@ check_symbol_exists(tzname "time.h" HAVE_TZNAME) # Check if the libc vsnprintf() conforms to C99. If this fails we may # need to fall-back on GLib I/O. # -cmake_push_check_state(RESET) -if(MINGW) - set(CMAKE_REQUIRED_DEFINITIONS -D__USE_MINGW_ANSI_STDIO) -endif() check_c_source_runs(" #include <stdio.h> int main(void) @@ -124,7 +120,6 @@ check_c_source_runs(" }" HAVE_C99_VSNPRINTF ) -cmake_pop_check_state() if (NOT HAVE_C99_VSNPRINTF) message(FATAL_ERROR "Building Wireshark requires a C99 compliant vsnprintf() and this \ |