diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/unit/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt index 43a6c41a7..2bcf77874 100644 --- a/tests/libtest/CMakeLists.txt +++ b/tests/libtest/CMakeLists.txt @@ -36,7 +36,7 @@ function(setup_test TEST_NAME) # ARGN are the files in the test include_directories(${CARES_INCLUDE_DIR}) endif() - target_link_libraries(${TEST_NAME} ${LIB_NAME} ${CURL_LIBS}) + target_link_libraries(${TEST_NAME} libcurl ${CURL_LIBS}) set_target_properties(${TEST_NAME} PROPERTIES COMPILE_DEFINITIONS ${UPPER_TEST_NAME}) diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 889c792d3..a680c5308 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -63,7 +63,7 @@ foreach(_testfile ${UT_SRC}) get_filename_component(_testname ${_testfile} NAME_WE) add_executable(${_testname} EXCLUDE_FROM_ALL ${_testfile} ${UT_COMMON_FILES}) #add_dependencies(testdeps ${_testname}) - target_link_libraries(${_testname} ${LIB_NAME} ${CURL_LIBS}) + target_link_libraries(${_testname} libcurl ${CURL_LIBS}) set_target_properties(${_testname} PROPERTIES COMPILE_DEFINITIONS "UNITTESTS") endforeach() |