Use modern OpenSSL cmake syntax (if available), and larger cmake cleanup
diff --git a/test/c_glib/CMakeLists.txt b/test/c_glib/CMakeLists.txt
index 2e2d687..410774d 100644
--- a/test/c_glib/CMakeLists.txt
+++ b/test/c_glib/CMakeLists.txt
@@ -17,7 +17,7 @@
# under the License.
#
-# Contains the thrift specific LINK_AGAINST_THRIFT_LIBRARY
+# Contains the thrift specific target_link_libraries
include(ThriftMacros)
find_package(GLIB REQUIRED COMPONENTS gobject)
@@ -39,10 +39,10 @@
gen-c_glib/t_test_thrift_test_types.h
)
add_library(crosstestgencglib STATIC ${crosstestgencglib_SOURCES})
-LINK_AGAINST_THRIFT_LIBRARY(crosstestgencglib thrift_c_glib)
+target_link_libraries(crosstestgencglib thrift_c_glib)
if (WITH_ZLIB)
- LINK_AGAINST_THRIFT_LIBRARY(crosstestgencglib thrift_c_glib_zlib)
+ target_link_libraries(crosstestgencglib thrift_c_glib_zlib)
endif ()
add_executable(test_server src/test_server.c src/thrift_test_handler.c src/thrift_second_service_handler.c)