From b64feda7296b4f2074617ef92266ba4ac37c72e2 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Wed, 5 Feb 2014 23:29:49 -0700 Subject: [PATCH] CMake: Add Windows platform libraries when building on Win32. --- panda/src/express/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/express/CMakeLists.txt b/panda/src/express/CMakeLists.txt index 34645871ae..67f374fe0f 100644 --- a/panda/src/express/CMakeLists.txt +++ b/panda/src/express/CMakeLists.txt @@ -130,6 +130,10 @@ target_link_libraries(p3express p3pandabase p3dtool p3dtoolconfig ${_TAR_LIBRARY}) target_interrogate(p3express ALL) +if(WIN32) + target_link_libraries(p3express advapi32.lib ws2_32.lib) +endif() + #add_executable(p3expressTestTypes test_types.cxx) #target_link_libraries(p3expressTestTypes p3express p3dtoolutil p3dtool p3prc p3dtoolconfig p3pystub) #add_test(p3express_test_types p3expressTestTypes)