Skip to content

Commit

Permalink
Merge pull request #1142 from Biswa96/fix-mingw-install
Browse files Browse the repository at this point in the history
cmake: Install shared libraries in proper directories.
  • Loading branch information
Nightwalker-87 authored May 18, 2021
2 parents f5ada94 + 553713d commit c7dd173
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,11 @@ else ()
target_link_libraries(${STLINK_LIB_SHARED} ${LIBUSB_LIBRARY} ${SSP_LIB})
endif ()

install(TARGETS ${STLINK_LIB_SHARED} DESTINATION ${STLINK_LIBRARY_PATH})

install(TARGETS ${STLINK_LIB_SHARED}
ARCHIVE DESTINATION ${STLINK_LIBRARY_PATH}
LIBRARY DESTINATION ${STLINK_LIBRARY_PATH}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

###
# Static library
Expand Down
2 changes: 1 addition & 1 deletion src/win32/win32_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int win32_poll(struct pollfd *fds, unsigned int nfds, int timo) {

if (rc > 0) {
for ( i = 0; i < nfds; ++i) {
int fd = fds[i].fd;
SOCKET fd = fds[i].fd;

if (fds[i].events & (POLLIN | POLLPRI) && FD_ISSET(fd, &ifds)) {
fds[i].revents |= POLLIN;
Expand Down

0 comments on commit c7dd173

Please sign in to comment.