]> source.dussan.org Git - tigervnc.git/commitdiff
stop setting CMAKE_EXTRA_INCLUDE_FILES for check_function_exists()
authorPierre Ossman <ossman@cendio.se>
Tue, 17 Mar 2015 12:35:33 +0000 (13:35 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 17 Mar 2015 12:35:33 +0000 (13:35 +0100)
It ignores it anyway.

CMakeLists.txt

index ad4efdb01a7c1e477193747ea7b56815a66e94e5..3f11676e441cbcf14853951f476d0315534cfda7 100644 (file)
@@ -254,10 +254,7 @@ set(HAVE_PAM ${ENABLE_PAM})
 
 # Check for socket functions
 if(WIN32)
-  set(CMAKE_EXTRA_INCLUDE_FILES winsock2.h ws2tcpip.h)
   set(CMAKE_REQUIRED_LIBRARIES ws2_32)
-else()
-  set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
 endif()
 check_function_exists(inet_aton HAVE_INET_ATON)
 # This might give a false positive on Windows as it is also guarded by
@@ -267,7 +264,6 @@ if(NOT WIN32)
 check_function_exists(inet_pton HAVE_INET_PTON)
 endif()
 check_function_exists(getaddrinfo HAVE_GETADDRINFO)
-set(CMAKE_EXTRA_INCLUDE_FILES) 
 set(CMAKE_REQUIRED_LIBRARIES)
 
 # Generate config.h and make sure the source finds it