Browse Source

CMake: Library link changes for Windows.

Sam Edwards 10 years ago
parent
commit
64c55cf92c
2 changed files with 5 additions and 1 deletions
  1. 4 0
      panda/src/net/CMakeLists.txt
  2. 1 1
      panda/src/windisplay/CMakeLists.txt

+ 4 - 0
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()

+ 1 - 1
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()