From 2fb08c6455bf6f08209b5993c755c1135611813b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 7 Nov 2013 18:09:32 +0100 Subject: CMake: add LINK_LIBRARIES workaround for old CMake versions --- src/crypto/mac/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/crypto/mac') diff --git a/src/crypto/mac/CMakeLists.txt b/src/crypto/mac/CMakeLists.txt index fe13ace..ca3b71d 100644 --- a/src/crypto/mac/CMakeLists.txt +++ b/src/crypto/mac/CMakeLists.txt @@ -58,7 +58,9 @@ foreach(mac ${MACS}) endforeach(impl) set(MAC_IMPLS "${MAC_IMPLS}NULL};") - endforeach(mac) +get_property(LIBS TARGET macs PROPERTY FASTD_LINK_LIBRARIES) +target_link_libraries(macs ${LIBS}) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/macs.c.in ${CMAKE_CURRENT_BINARY_DIR}/macs.c) -- cgit v1.2.3