Try fix windows compile for udns

This commit is contained in:
Torsten Dreyer
2016-05-02 17:42:01 +02:00
parent 6b31646d61
commit 53d8dcfc77
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -1,11 +1,17 @@
include (SimGearComponent) include (SimGearComponent)
INCLUDE (CheckFunctionExists) INCLUDE (CheckFunctionExists)
INCLUDE (CheckSymbolExists) INCLUDE (CheckSymbolExists)
include (CheckIncludeFile)
CHECK_FUNCTION_EXISTS(poll HAVE_POLL) CHECK_FUNCTION_EXISTS(poll HAVE_POLL)
CHECK_FUNCTION_EXISTS(getopt HAVE_GETOPT) CHECK_FUNCTION_EXISTS(getopt HAVE_GETOPT)
CHECK_FUNCTION_EXISTS(inet_ntop HAVE_INET_PTON_NTOP) CHECK_FUNCTION_EXISTS(inet_ntop HAVE_INET_PTON_NTOP)
CHECK_SYMBOL_EXISTS(AF_INET6 "netinet/in.h" HAVE_IPv6) 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) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/config.h)
include_directories(${CMAKE_BINARY_DIR}) include_directories(${CMAKE_BINARY_DIR})
+1
View File
@@ -2,3 +2,4 @@
#cmakedefine HAVE_GETOPT #cmakedefine HAVE_GETOPT
#cmakedefine HAVE_INET_PTON_NTOP #cmakedefine HAVE_INET_PTON_NTOP
#cmakedefine HAVE_IPv6 #cmakedefine HAVE_IPv6
#cmakedefine WINDOWS