diff --git a/CMakeLists.txt b/CMakeLists.txt index 750b41ab8164..99c77d543e6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -566,7 +566,7 @@ endif() if(WIN32) if(MINGW OR CYGWIN) - target_link_libraries(lightgbm_objs PUBLIC Ws2_32 IPHLPAPI) + target_link_libraries(lightgbm_objs PUBLIC ws2_32 iphlpapi) endif() endif() diff --git a/R-package/src/Makevars.win.in b/R-package/src/Makevars.win.in index fe4d31eb7746..14f5afde002f 100644 --- a/R-package/src/Makevars.win.in +++ b/R-package/src/Makevars.win.in @@ -19,7 +19,7 @@ PKG_LIBS = \ ${SHLIB_OPENMP_CXXFLAGS} \ ${SHLIB_PTHREAD_FLAGS} \ -lws2_32 \ - -lIphlpapi + -liphlpapi OBJECTS = \ boosting/boosting.o \