aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt
index 845d07e5..cd662865 100644
--- a/test/unit/CMakeLists.txt
+++ b/test/unit/CMakeLists.txt
@@ -153,8 +153,9 @@ set_property(TEST gie_self_tests
add_executable(test_network
main.cpp
test_network.cpp)
-if(CURL_FOUND)
+if(CURL_ENABLED)
include_directories(${CURL_INCLUDE_DIR})
+ target_compile_definitions(test_network PRIVATE -DCURL_ENABLED)
target_link_libraries(test_network ${CURL_LIBRARY})
endif()
target_link_libraries(test_network