diff --git a/cmake/Findv8.cmake b/cmake/Findv8.cmake index 0632afecc..e46ae7e39 100644 --- a/cmake/Findv8.cmake +++ b/cmake/Findv8.cmake @@ -56,7 +56,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") DOC "v8 nosnapshot library" ) - set(V8_LIBRARIES optimized ${V8_LIBRARIES} debug ${V8_LIBRARY_DEBUG} ${V8_NO_SNAPSHOT_LIBRARY_DEBUG}) + set(V8_LIBRARIES "ws2_32" "winmm" optimized ${V8_LIBRARIES} debug ${V8_LIBRARY_DEBUG} ${V8_NO_SNAPSHOT_LIBRARY_DEBUG}) endif() diff --git a/libjsconsole/CMakeLists.txt b/libjsconsole/CMakeLists.txt index ab94a62dd..b5362b31a 100644 --- a/libjsconsole/CMakeLists.txt +++ b/libjsconsole/CMakeLists.txt @@ -33,7 +33,6 @@ target_link_libraries(${EXECUTABLE} ${JSON_RPC_CPP_SERVER_LIBRARIES}) target_link_libraries(${EXECUTABLE} ${CURL_LIBRARIES}) if (DEFINED WIN32 AND NOT DEFINED CMAKE_COMPILER_IS_MINGW) - target_link_libraries(${EXECUTABLE} "ws2_32" "winmm") eth_copy_dlls(${EXECUTABLE} CURL_DLLS) endif()