From 4f1e8411c1b54f714815f4e1c3007c29f5a650ea Mon Sep 17 00:00:00 2001 From: trabus322 Date: Wed, 20 Mar 2024 10:07:20 +0100 Subject: [PATCH] Trying an if WIN32 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4381a43..b1d5718 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ add_executable(hoymilesClient_exec ${SOURCES}) # configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/inc/libmodbus/config.h) -# if(WIN32) +if(WIN32) # find_library(ws2_32_library NAMES libws2_32.a HINTS /usr/x86_64-w64-mingw32/lib) target_link_libraries(hoymilesClient_exec "/usr/x86_64-w64-mingw32/lib/libws2_32.a") -# endif(WIN32) \ No newline at end of file +endif(WIN32) \ No newline at end of file