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()