]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Don't use libcurl on test build
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 21 Nov 2017 22:12:32 +0000 (17:12 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 21 Nov 2017 22:12:32 +0000 (17:12 -0500)
CMakeLists.txt

index 7bd9f10f22db4c7ea4b489e43e8f97866eaa0d66..f4c61e5a38d9e9106edb9693e2d7a0a89ca89176 100644 (file)
@@ -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)