mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
CMake check_include and struct cleanup
Move to WinPR what should be there.
This commit is contained in:
@@ -463,22 +463,6 @@ endif()
|
||||
|
||||
add_definitions(-DFREERDP_EXPORTS)
|
||||
|
||||
# Include files
|
||||
if(NOT IOS)
|
||||
check_include_files(unistd.h HAVE_UNISTD_H)
|
||||
check_include_files(execinfo.h HAVE_EXECINFO_H)
|
||||
check_include_files(inttypes.h HAVE_INTTYPES_H)
|
||||
else()
|
||||
set(HAVE_UNISTD_H 1)
|
||||
set(HAVE_INTTYPES_H 1)
|
||||
endif()
|
||||
|
||||
if(NOT IOS)
|
||||
check_struct_has_member("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF)
|
||||
else()
|
||||
set(HAVE_TM_GMTOFF 1)
|
||||
endif()
|
||||
|
||||
# Mac OS X
|
||||
if(APPLE)
|
||||
if(IOS)
|
||||
@@ -567,19 +551,6 @@ else()
|
||||
endif()
|
||||
|
||||
if(UNIX OR CYGWIN)
|
||||
if (FREEBSD)
|
||||
list(APPEND CMAKE_REQUIRED_INCLUDES ${EPOLLSHIM_INCLUDE_DIR})
|
||||
endif()
|
||||
if (FREEBSD)
|
||||
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${EPOLLSHIM_INCLUDE_DIR})
|
||||
endif()
|
||||
option(WITH_POLL "Check for and include poll.h" ON)
|
||||
if (WITH_POLL)
|
||||
check_include_files(poll.h HAVE_POLL_H)
|
||||
endif()
|
||||
list(APPEND CMAKE_REQUIRED_LIBRARIES m)
|
||||
check_symbol_exists(ceill math.h HAVE_MATH_C99_LONG_DOUBLE)
|
||||
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES m)
|
||||
set(X11_FEATURE_TYPE "RECOMMENDED")
|
||||
set(WAYLAND_FEATURE_TYPE "RECOMMENDED")
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user