aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-20 12:32:35 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-20 12:32:35 +0200
commitd23e64fc5211bc30ca7a34ac8ca98069a838c23f (patch)
treeb2ecb9986f3276ee2ff1c5498c2a6636224bda23 /ConfigureChecks.cmake
parentfd83d694403834493da20eb4977c7269c2b2ff43 (diff)
downloadlibssh-d23e64fc5211bc30ca7a34ac8ca98069a838c23f.tar.gz
libssh-d23e64fc5211bc30ca7a34ac8ca98069a838c23f.tar.xz
libssh-d23e64fc5211bc30ca7a34ac8ca98069a838c23f.zip
Add a warning if wspiapi.h doesn't exist.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 1e8fbf5b..b1935c6e 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -25,6 +25,9 @@ check_include_file(pty.h HAVE_PTY_H)
check_include_file(terminos.h HAVE_TERMIOS_H)
if (WIN32)
check_include_file(wspiapi.h HAVE_WSPIAPI_H)
+ if (NOT HAVE_WSPIAPI_H)
+ message(STATUS "WARNING: Without wspiapi.h, this build will only work on Windows XP and newer versions")
+ endif (NOT HAVE_WSPIAPI_H)
set(HAVE_GETADDRINFO TRUE)
set(HAVE_GETHOSTBYNAME TRUE)
set(HAVE_SELECT TRUE)