aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-03-12 13:40:56 -0700
committerAnders Broman <a.broman58@gmail.com>2018-03-13 06:07:25 +0000
commit1915ce613387c135ae8e3bc55190e3e7473313d2 (patch)
tree2530e0cfb5e96dd19e0d8e1978f09cbde14fb1c5 /ConfigureChecks.cmake
parentda05837004bf4d1eecc6ca63dd82dde480aa3354 (diff)
CMake: Skip some header checks on Windows.
Skip some header checks on Windows when we're sure they will always be true. Change-Id: I4ff7c867b9268a53692085553055dcbc0f90ae1d Reviewed-on: https://code.wireshark.org/review/26452 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 1e7a75ae55..0a6c1fc065 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -9,6 +9,14 @@
include(CMakePushCheckState)
+if(WIN32)
+ # Prepopulate some values. Compilation checks on Windows can be slow.
+ set(HAVE_FCNTL_H TRUE)
+ set(HAVE_SYS_STAT_H TRUE)
+ set(HAVE_FLOORL TRUE)
+ set(HAVE_LRINT TRUE)
+endif(WIN32)
+
#check system for includes
include(CheckIncludeFile)
check_include_file("arpa/inet.h" HAVE_ARPA_INET_H)