From 80eb1454604f71fdcbb17c7fb73bade22031ef81 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Tue, 13 Dec 2022 05:44:07 -0600 Subject: add direct source dependency to each library Fix library generation with some CMake generators by including a direct source file dependency for each library. --- tls/CMakeLists.txt | 2 +- tls/Makefile.am | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tls') diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index 7827a5e..62dde63 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt @@ -48,7 +48,7 @@ target_include_directories(tls_obj ../include) add_library(tls $ $ - $) + $ empty.c) export_symbol(tls ${CMAKE_CURRENT_BINARY_DIR}/tls.sym) target_link_libraries(tls ${PLATFORM_LIBS}) diff --git a/tls/Makefile.am b/tls/Makefile.am index 160359c..9b62b22 100644 --- a/tls/Makefile.am +++ b/tls/Makefile.am @@ -8,6 +8,7 @@ lib_LTLIBRARIES = libtls.la EXTRA_DIST = VERSION EXTRA_DIST += CMakeLists.txt EXTRA_DIST += tls.sym +EXTRA_DIST += empty.c CLEANFILES = libtls_la_objects.mk -- cgit v1.2.3-55-g6feb