Skip to content

Commit 6001370

Browse files
committed
fix: avoid yardstick.lib collision on Windows
1 parent be33696 commit 6001370

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ endif()
166166
if(WIN32)
167167
target_link_libraries(${EXTENSION_NAME} ws2_32 userenv bcrypt ntdll)
168168
target_link_libraries(${LOADABLE_EXTENSION_NAME} ws2_32 userenv bcrypt ntdll)
169+
# Avoid import lib name collision with Rust staticlib (yardstick.lib).
170+
set_target_properties(${LOADABLE_EXTENSION_NAME} PROPERTIES
171+
ARCHIVE_OUTPUT_NAME "${TARGET_NAME}_loadable")
169172
endif()
170173

171174
install(

0 commit comments

Comments
 (0)