]> git.mxchange.org Git - simgear.git/commitdiff
Try fix windows compile for udns
authorTorsten Dreyer <torsten@t3r.de>
Mon, 2 May 2016 15:42:01 +0000 (17:42 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
3rdparty/udns/CMakeLists.txt
3rdparty/udns/config.h.in

index c309229779ef7ff09913802db11c31b1b8929a1d..e4ca6d2f409aa4148531ec03250a1ca088fc8d28 100644 (file)
@@ -1,11 +1,17 @@
 include (SimGearComponent)
 INCLUDE (CheckFunctionExists)
 INCLUDE (CheckSymbolExists) 
+include (CheckIncludeFile)
+
 
 CHECK_FUNCTION_EXISTS(poll HAVE_POLL)
 CHECK_FUNCTION_EXISTS(getopt HAVE_GETOPT)
 CHECK_FUNCTION_EXISTS(inet_ntop HAVE_INET_PTON_NTOP)
 CHECK_SYMBOL_EXISTS(AF_INET6 "netinet/in.h" HAVE_IPv6) 
+# WINDOWS should be defined by msvc, should it?
+# somehow it is not, if somebody know a better way to define WINDOWS, please fix
+check_include_file(windows.h  WINDOWS)
+
 
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/config.h)
 include_directories(${CMAKE_BINARY_DIR})
index d30682824eb4e98e50aca0bcfdd5c7f6fd3b65f1..5968a3c50898e5fc2c7a4e5431ebc1eff08afb11 100644 (file)
@@ -2,3 +2,4 @@
 #cmakedefine HAVE_GETOPT
 #cmakedefine HAVE_INET_PTON_NTOP
 #cmakedefine HAVE_IPv6
+#cmakedefine WINDOWS