Skip to content

Commit

Permalink
fix windows dll install
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Nov 21, 2024
1 parent 52bb830 commit 0d31c38
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions servant/libservant/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if(ENABLE_SHARED)
add_dependencies(tarsservant_shared tarsservant tarsutil_shared tarsparse_shared)

install(TARGETS tarsservant_shared
RUNTIME DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
if (WIN32)
Expand Down
1 change: 1 addition & 0 deletions tools/tarsparse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ if(ENABLE_SHARED)
target_link_libraries(${TARGETNAME}_shared tarsutil_shared)

install(TARGETS ${TARGETNAME}_shared
RUNTIME DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

Expand Down
1 change: 1 addition & 0 deletions util/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ if(ENABLE_SHARED)
add_dependencies(tarsutil_shared thirdparty)

install(TARGETS tarsutil_shared
RUNTIME DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
if (WIN32)
Expand Down
2 changes: 1 addition & 1 deletion util/src/tc_serialport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ void TC_SerialPort::recvSucc(uint32_t len)

if((*it)->length() > 0)
{
assert((*it)->length() == length);
assert((*it)->length() == len);
_recvBuffer.addBuffer(*it);

}
Expand Down

0 comments on commit 0d31c38

Please sign in to comment.