File fix-gtest-linkage.patch of Package elektra

Index: elektra-0.8.26/cmake/Modules/LibAddPlugin.cmake
===================================================================
--- elektra-0.8.26.orig/cmake/Modules/LibAddPlugin.cmake
+++ elektra-0.8.26/cmake/Modules/LibAddPlugin.cmake
@@ -186,6 +186,8 @@ function (add_plugintest testname)
 			target_link_libraries (${testexename} gtest_main)
 		endif (ARG_CPP)
 
+		target_link_libraries (${testexename} gtest)
+
 		set_additional_compile_definitions (${testname})
 
 		target_link_libraries (${testexename} ${ARG_LINK_LIBRARIES} ${ARG_TEST_LINK_LIBRARIES})
openSUSE Build Service is sponsored by