Skip to content

Commit

Permalink
fix CmakeLists.txt for extras for static build (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
schamane committed Nov 14, 2023
1 parent 20a8549 commit 9e8c722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit 9e8c722

Please sign in to comment.