From 85a3b6e935dc0fa7d07dc34170f53c4b8f4e4329 Mon Sep 17 00:00:00 2001 From: servusoft Date: Tue, 15 Nov 2016 14:11:42 +0100 Subject: [PATCH] fix bugfix add_definitions(..) should be befor add_subdirectory(..) --- 3rdParty/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/3rdParty/CMakeLists.txt b/3rdParty/CMakeLists.txt index 2dc9b1c5e5..52ca321e97 100644 --- a/3rdParty/CMakeLists.txt +++ b/3rdParty/CMakeLists.txt @@ -98,12 +98,11 @@ set(CMAKE_USE_LIBSSH2 OFF CACHE type BOOL) set(CMAKE_USE_OPENSSL ON CACHE type BOOL) # mop: super important...if this is off curl will not handle request timeouts < 1000ms set(ENABLE_THREADED_RESOLVER ON CACHE type BOOL) -add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/curl/curl-7.50.3) # bugfix for HAVE_POSIX_STRERROR_R define on cross compiling. if (CROSS_COMPILING) add_definitions("-DHAVE_POSIX_STRERROR_R=1") endif() - +add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/curl/curl-7.50.3) ################################################################################ ## ROCKSDB