From 9e8c722d0509085ecf2ae078e9b82cb40a11eaee Mon Sep 17 00:00:00 2001 From: Nazar Kulyk Date: Tue, 14 Nov 2023 12:49:57 +0100 Subject: [PATCH] fix CmakeLists.txt for extras for static build (#147) #146 --- extras/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/CMakeLists.txt b/extras/CMakeLists.txt index 184b948f..2787b68b 100644 --- a/extras/CMakeLists.txt +++ b/extras/CMakeLists.txt @@ -11,9 +11,9 @@ function(rwkv_add_extra source) if(RWKV_HIPBLAS) message(FATAL_ERROR "Static linking not supported for HIP/ROCm") else() - get_target_property(target_LINK_OPTIONS ${TEST_TARGET} LINK_OPTIONS) + get_target_property(target_LINK_OPTIONS rwkv_${EXTRA_TARGET} LINK_OPTIONS) list(REMOVE_ITEM target_LINK_OPTIONS "-static") - set_target_properties(${TEST_TARGET} PROPERTIES LINK_OPTIONS "${target_LINK_OPTIONS}") + set_target_properties(rwkv_${EXTRA_TARGET} PROPERTIES LINK_OPTIONS "${target_LINK_OPTIONS}") endif() endif() endfunction()