From d23e64fc5211bc30ca7a34ac8ca98069a838c23f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 20 Aug 2009 12:32:35 +0200 Subject: Add a warning if wspiapi.h doesn't exist. --- ConfigureChecks.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ConfigureChecks.cmake') 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) -- cgit v1.2.3