[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 38/41: cmake: Threads detection update. ref: #1702
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 38/41: cmake: Threads detection update. ref: #1702 |
Date: |
Sun, 20 Aug 2017 20:47:00 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.55.1
in repository gnurl.
commit a905e883dceadf20f8ff22cf7a28d2bb3defa1ea
Author: Sergei Nikulov <address@hidden>
AuthorDate: Tue Aug 1 20:40:29 2017 +0300
cmake: Threads detection update. ref: #1702
Closes #1719
---
CMakeLists.txt | 29 +++++++++--------------------
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dea1303f5..af7f4dc40 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -79,14 +79,12 @@ option(ENABLE_ARES "Set to ON to enable c-ares support" OFF)
if(WIN32)
option(CURL_STATIC_CRT "Set to ON to build libcurl with static CRT on
Windows (/MT)." OFF)
option(ENABLE_INET_PTON "Set to OFF to prevent usage of inet_pton when
building against modern SDKs while still requiring compatibility with older
Windows versions, such as Windows XP, Windows Server 2003 etc." ON)
-
- CMAKE_DEPENDENT_OPTION(ENABLE_THREADED_RESOLVER
- "Set to ON to enable threaded DNS lookup"
- ON "NOT ENABLE_ARES"
- OFF)
-else()
- option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS
lookup" OFF)
endif()
+
+CMAKE_DEPENDENT_OPTION(ENABLE_THREADED_RESOLVER "Set to ON to enable threaded
DNS lookup"
+ ON "NOT ENABLE_ARES"
+ OFF)
+
option(ENABLE_DEBUG "Set to ON to enable curl debug features" OFF)
option(ENABLE_CURLDEBUG "Set to ON to build with TrackMemory feature enabled"
OFF)
@@ -110,10 +108,6 @@ set(CMAKE_DEBUG_POSTFIX "-d" CACHE STRING "Set debug
library postfix")
# initialize CURL_LIBS
set(CURL_LIBS "")
-if(ENABLE_THREADED_RESOLVER AND ENABLE_ARES)
- message(FATAL_ERROR "Options ENABLE_THREADED_RESOLVER and ENABLE_ARES are
mutually exclusive")
-endif()
-
if(ENABLE_ARES)
set(USE_ARES 1)
find_package(CARES REQUIRED)
@@ -275,19 +269,14 @@ if(WIN32)
endif(WIN32)
if(ENABLE_THREADED_RESOLVER)
+ find_package(Threads REQUIRED)
if(WIN32)
set(USE_THREADS_WIN32 ON)
else()
- check_include_file_concat("pthread.h" HAVE_PTHREAD_H)
- if(HAVE_PTHREAD_H)
- set(CMAKE_THREAD_PREFER_PTHREAD 1)
- find_package(Threads)
- if(CMAKE_USE_PTHREADS_INIT)
- set(CURL_LIBS ${CURL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
- set(USE_THREADS_POSIX 1)
- endif()
- endif()
+ set(USE_THREADS_POSIX ${CMAKE_USE_PTHREADS_INIT})
+ set(HAVE_PTHREAD_H ${CMAKE_USE_PTHREADS_INIT})
endif()
+ set(CURL_LIBS ${CURL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
endif()
# Check for all needed libraries
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 07/41: build: check out *.sln files with Windows line endings, (continued)
- [GNUnet-SVN] [gnurl] 07/41: build: check out *.sln files with Windows line endings, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 10/41: metalink: fix error: ‘*’ in boolean context, suggest ‘&&’ instead, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 09/41: dist: fix the cmake build by shipping cmake_uninstall.cmake.in too, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 02/41: make install: add 8 missing man pages to the installation, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 16/41: openssl: fix "error: this statement may fall through", gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 21/41: test2033: this went flaky again, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 20/41: test1447: verifies the parse proxy fix in 6e0e152ce5c, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 15/41: openssl: remove CONST_ASN1_BIT_STRING., gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 08/41: travis: verify "make install", gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 19/41: parse_proxy(): fix memory leak in case of invalid proxy server name, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 38/41: cmake: Threads detection update. ref: #1702,
gnunet <=
- [GNUnet-SVN] [gnurl] 05/41: digest_sspi: Don't reuse context if the user/passwd has changed, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 11/41: cmake: move cmake_uninstall.cmake to CMake/, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 14/41: maketgz: remove old *.dist files before making the tarball, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 28/41: bagder/Curl_tvdiff_us: fix the math, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 32/41: travis: test cmake build on tarball too, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 26/41: docs: fix typo funtion -> function, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 33/41: test2032: mark as flaky (again), gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 18/41: RELEASE-NOTES: synced with 37f2195a9, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 40/41: RELEASE-NOTES/THANKS: curl 7.55.1 release time, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 34/41: redirect: skip URL encoding for host names, gnunet, 2017/08/20