From adc01a7a819143c636448952828575cf1d03f68d Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Tue, 21 Nov 2017 17:12:32 -0500 Subject: [PATCH] FIXED: Don't use libcurl on test build --- CMakeLists.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bd9f10..f4c61e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -426,13 +426,15 @@ endif (WIN32) # ============== # Is libcurl available? -find_package(CURL) -if (CURL_FOUND) - add_definitions(-DUSE_CURL) - message (STATUS "libcurl found") -else () - message (STATUS "libcurl not found") -endif (CURL_FOUND) +if (NOT DEFINED TEST) + find_package(CURL) + if (CURL_FOUND) + add_definitions(-DUSE_CURL) + message (STATUS "libcurl found") + else () + message (STATUS "libcurl not found") + endif (CURL_FOUND) +endif () # Create a library? if (NOT DEFINED TEST) -- 2.40.0