mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
Problem: redundant output in CMakeLists.txt
Solution: remove redundant debug output
This commit is contained in:
parent
ea109fcaab
commit
635f093744
@ -350,11 +350,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND CMAKE_SYSTEM_VERSION STREQUAL "
|
|||||||
endif()
|
endif()
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
check_include_files(ifaddrs.h ZMQ_HAVE_IFADDRS)
|
check_include_files(ifaddrs.h ZMQ_HAVE_IFADDRS)
|
||||||
message("ZMQ_HAVE_IFADDRS: ${ZMQ_HAVE_IFADDRS}")
|
|
||||||
check_include_files(sys/uio.h ZMQ_HAVE_UIO)
|
check_include_files(sys/uio.h ZMQ_HAVE_UIO)
|
||||||
message("ZMQ_HAVE_UIO: ${ZMQ_HAVE_UIO}")
|
|
||||||
check_include_files(sys/eventfd.h ZMQ_HAVE_EVENTFD)
|
check_include_files(sys/eventfd.h ZMQ_HAVE_EVENTFD)
|
||||||
message("ZMQ_HAVE_EVENTFD: ${ZMQ_HAVE_EVENTFD}")
|
|
||||||
if(ZMQ_HAVE_EVENTFD AND NOT CMAKE_CROSSCOMPILING)
|
if(ZMQ_HAVE_EVENTFD AND NOT CMAKE_CROSSCOMPILING)
|
||||||
zmq_check_efd_cloexec()
|
zmq_check_efd_cloexec()
|
||||||
endif()
|
endif()
|
||||||
@ -376,9 +373,7 @@ if(ZMQ_HAVE_WINDOWS)
|
|||||||
check_library_exists(ws2 fopen "" HAVE_WS2)
|
check_library_exists(ws2 fopen "" HAVE_WS2)
|
||||||
else()
|
else()
|
||||||
check_cxx_symbol_exists(SO_PEERCRED sys/socket.h ZMQ_HAVE_SO_PEERCRED)
|
check_cxx_symbol_exists(SO_PEERCRED sys/socket.h ZMQ_HAVE_SO_PEERCRED)
|
||||||
message("ZMQ_HAVE_SO_PEERCRED: ${ZMQ_HAVE_SO_PEERCRED}")
|
|
||||||
check_cxx_symbol_exists(LOCAL_PEERCRED sys/socket.h ZMQ_HAVE_LOCAL_PEERCRED)
|
check_cxx_symbol_exists(LOCAL_PEERCRED sys/socket.h ZMQ_HAVE_LOCAL_PEERCRED)
|
||||||
message("ZMQ_HAVE_LOCAL_PEERCRED: ${ZMQ_HAVE_LOCAL_PEERCRED}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_library(RT_LIBRARY rt)
|
find_library(RT_LIBRARY rt)
|
||||||
@ -406,33 +401,26 @@ if(NOT MSVC)
|
|||||||
set(CMAKE_REQUIRED_LIBRARIES rt)
|
set(CMAKE_REQUIRED_LIBRARIES rt)
|
||||||
check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
|
check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
|
||||||
set(CMAKE_REQUIRED_LIBRARIES)
|
set(CMAKE_REQUIRED_LIBRARIES)
|
||||||
message("HAVE_CLOCK_GETTIME: ${HAVE_CLOCK_GETTIME}")
|
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES unistd.h)
|
set(CMAKE_REQUIRED_INCLUDES unistd.h)
|
||||||
check_function_exists(fork HAVE_FORK)
|
check_function_exists(fork HAVE_FORK)
|
||||||
set(CMAKE_REQUIRED_INCLUDES)
|
set(CMAKE_REQUIRED_INCLUDES)
|
||||||
message("HAVE_FORK: ${HAVE_FORK}")
|
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES sys/time.h)
|
set(CMAKE_REQUIRED_INCLUDES sys/time.h)
|
||||||
check_function_exists(gethrtime HAVE_GETHRTIME)
|
check_function_exists(gethrtime HAVE_GETHRTIME)
|
||||||
set(CMAKE_REQUIRED_INCLUDES)
|
set(CMAKE_REQUIRED_INCLUDES)
|
||||||
message("HAVE_GETHRTIME: ${HAVE_GETHRTIME}")
|
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES stdlib.h)
|
set(CMAKE_REQUIRED_INCLUDES stdlib.h)
|
||||||
check_function_exists(mkdtemp HAVE_MKDTEMP)
|
check_function_exists(mkdtemp HAVE_MKDTEMP)
|
||||||
set(CMAKE_REQUIRED_INCLUDES)
|
set(CMAKE_REQUIRED_INCLUDES)
|
||||||
message("HAVE_MKDTEMP: ${HAVE_MKDTEMP}")
|
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES sys/socket.h)
|
set(CMAKE_REQUIRED_INCLUDES sys/socket.h)
|
||||||
check_function_exists(accept4 HAVE_ACCEPT4)
|
check_function_exists(accept4 HAVE_ACCEPT4)
|
||||||
set(CMAKE_REQUIRED_INCLUDES)
|
set(CMAKE_REQUIRED_INCLUDES)
|
||||||
message("HAVE_ACCEPT4: ${HAVE_ACCEPT4}")
|
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES string.h)
|
set(CMAKE_REQUIRED_INCLUDES string.h)
|
||||||
check_function_exists(strnlen HAVE_STRNLEN)
|
check_function_exists(strnlen HAVE_STRNLEN)
|
||||||
set(CMAKE_REQUIRED_INCLUDES)
|
set(CMAKE_REQUIRED_INCLUDES)
|
||||||
message("HAVE_STRNLEN: ${HAVE_STRNLEN}")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_definitions(-D_REENTRANT -D_THREAD_SAFE)
|
add_definitions(-D_REENTRANT -D_THREAD_SAFE)
|
||||||
@ -542,7 +530,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "SunOS" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD" OR CM
|
|||||||
} \
|
} \
|
||||||
"
|
"
|
||||||
HAVE_ATOMIC_H)
|
HAVE_ATOMIC_H)
|
||||||
message("HAVE_ATOMIC_H: ${HAVE_ATOMIC_H}")
|
|
||||||
if(NOT HAVE_ATOMIC_H)
|
if(NOT HAVE_ATOMIC_H)
|
||||||
set(ZMQ_FORCE_MUTEXES 1)
|
set(ZMQ_FORCE_MUTEXES 1)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user