From: Fletcher T. Penney Date: Tue, 21 Nov 2017 22:12:32 +0000 (-0500) Subject: FIXED: Don't use libcurl on test build X-Git-Tag: 6.3.0^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adc01a7a819143c636448952828575cf1d03f68d;p=multimarkdown FIXED: Don't use libcurl on test build --- 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)