forked from koreader/koreader-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,12 @@ | ||
--- i/CMakeLists.txt | ||
+++ w/CMakeLists.txt | ||
@@ -1,6 +1,6 @@ | ||
# CMake build script for ZeroMQ | ||
|
||
-cmake_minimum_required(VERSION 2.8) | ||
+cmake_minimum_required(VERSION 3.15) | ||
project(ZeroMQ) | ||
|
||
option(WITH_OPENPGM "Build with support for OpenPGM" OFF) | ||
@@ -125,8 +125,6 @@ check_library_exists(iphlpapi printf "" HAVE_IPHLAPI) # GetAdaptersAddresses | ||
check_cxx_symbol_exists(SO_PEERCRED sys/socket.h ZMQ_HAVE_SO_PEERCRED) | ||
check_cxx_symbol_exists(LOCAL_PEERCRED sys/socket.h ZMQ_HAVE_LOCAL_PEERCRED) | ||
|
||
-find_library(RT_LIBRARY rt) | ||
- | ||
find_package(Threads) | ||
|
||
|
||
@@ -266,10 +264,6 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin") | ||
add_definitions(-D_DARWIN_C_SOURCE) | ||
endif() | ||
|
||
-set(CMAKE_PYTHON_VERSION 2.7 2.6 2.5 2.4) | ||
-find_package(PythonInterp) | ||
-find_package(AsciiDoc) | ||
- | ||
cmake_dependent_option(WITH_DOC "Build Reference Guide documentation(requires DocBook)" ON | ||
"PYTHON_FOUND;ASCIIDOC_FOUND" OFF) | ||
|
||
@@ -609,6 +603,7 @@ else() | ||
else() | ||
set_target_properties(libzmq PROPERTIES | ||
OUTPUT_NAME "zmq" | ||
+ VERSION 4 | ||
PUBLIC_HEADER "${public_headers}") | ||
endif() | ||
endif() | ||
@@ -628,8 +623,8 @@ if(HAVE_IPHLAPI) | ||
target_link_libraries(libzmq iphlpapi) | ||
endif() | ||
|
||
-if(RT_LIBRARY) | ||
- target_link_libraries(libzmq ${RT_LIBRARY}) | ||
+if(HAVE_CLOCK_GETTIME) | ||
+ target_link_libraries(libzmq -lrt) | ||
endif() | ||
|
||
set(perf-tools local_lat | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 0346227..7003fe2 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1508,7 +1508,7 @@ if(BUILD_SHARED) | ||
target_link_libraries(libzmq iphlpapi) | ||
endif() | ||
|
||
- if(RT_LIBRARY) | ||
+ if(RT_LIBRARY AND HAVE_CLOCK_GETTIME) | ||
target_link_libraries(libzmq -lrt) | ||
endif() |