diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fa462bec..a8dfa8f2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -289,7 +289,7 @@ foreach(test ${tests}) endif() if (WITH_GSSAPI_KRB5) - target_link_libraries(${static} ${GSSAPI_KRB5_LIBRARIES}) + target_link_libraries(${test} ${GSSAPI_KRB5_LIBRARIES}) endif() if(CMAKE_SYSTEM_NAME MATCHES "QNX") diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index 6f835122..64198eeb 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -44,7 +44,7 @@ foreach(test ${unittests}) endif() if (WITH_GSSAPI_KRB5) - target_link_libraries(${static} ${GSSAPI_KRB5_LIBRARIES}) + target_link_libraries(${test} ${GSSAPI_KRB5_LIBRARIES}) endif() if(WIN32)