changeset 4539:49971e7b75fb

link against iphlpapi.dll on Windows
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Mar 2021 14:53:35 +0100
parents 8a7523da6a9b
children 9c0cff7a6ca2 f21bc79e0f31
files OrthancFramework/Resources/CMake/Compiler.cmake
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Resources/CMake/Compiler.cmake	Tue Mar 02 14:06:10 2021 +0100
+++ b/OrthancFramework/Resources/CMake/Compiler.cmake	Tue Mar 02 14:53:35 2021 +0100
@@ -188,7 +188,7 @@
   add_definitions(
     -D_CRT_SECURE_NO_WARNINGS=1
     )
-  link_libraries(rpcrt4 ws2_32)
+  link_libraries(rpcrt4 ws2_32 iphlpapi)  # "iphlpapi" is for "SystemToolbox::GetMacAddresses()"
 
   if (CMAKE_COMPILER_IS_GNUCXX)
     # Some additional C/C++ compiler flags for MinGW