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. --- crypto/CMakeLists.txt | 2 +- crypto/Makefile.am | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto') diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 8956884..bb43432 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -1009,7 +1009,7 @@ target_include_directories(crypto_obj PUBLIC ../include) -add_library(crypto $) +add_library(crypto $ empty.c) export_symbol(crypto ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym) target_link_libraries(crypto ${PLATFORM_LIBS}) diff --git a/crypto/Makefile.am b/crypto/Makefile.am index bc3d4c2..e380fdf 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am @@ -32,6 +32,7 @@ endif EXTRA_DIST = VERSION EXTRA_DIST += CMakeLists.txt EXTRA_DIST += crypto.sym +EXTRA_DIST += empty.c # needed for a CMake target EXTRA_DIST += compat/strcasecmp.c -- cgit v1.2.3-55-g6feb