From 64c55cf92c2f36f6feb9207c64badb849349b82f Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Sun, 15 Nov 2015 22:52:28 -0800 Subject: [PATCH] CMake: Library link changes for Windows. --- panda/src/net/CMakeLists.txt | 4 ++++ panda/src/windisplay/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/panda/src/net/CMakeLists.txt b/panda/src/net/CMakeLists.txt index 68eac47634..e052940e8e 100644 --- a/panda/src/net/CMakeLists.txt +++ b/panda/src/net/CMakeLists.txt @@ -30,5 +30,9 @@ if(HAVE_NET AND WANT_NATIVE_NET) target_link_libraries(p3net p3express p3downloader p3pandabase p3nativenet p3pipeline) target_interrogate(p3net ALL) + if(WIN32) + target_link_libraries(p3net Iphlpapi.lib) + endif() + install(TARGETS p3net DESTINATION lib) endif() diff --git a/panda/src/windisplay/CMakeLists.txt b/panda/src/windisplay/CMakeLists.txt index b7290c8bc6..bd123d3ed7 100644 --- a/panda/src/windisplay/CMakeLists.txt +++ b/panda/src/windisplay/CMakeLists.txt @@ -13,5 +13,5 @@ if(WIN32) composite_sources(p3windisplay P3WINDISPLAY_SOURCES) add_library(p3windisplay ${P3WINDISPLAY_HEADERS} ${P3WINDISPLAY_SOURCES}) target_link_libraries(p3windisplay p3display p3putil - Coreimm.lib) + Imm32.lib) endif()