diff --git a/cmake/platforms/unix.cmake b/cmake/platforms/unix.cmake index beb2fa28..da4b92f7 100644 --- a/cmake/platforms/unix.cmake +++ b/cmake/platforms/unix.cmake @@ -16,7 +16,10 @@ if(USE_HTTP) list(APPEND CLIENT_PLATFORM_SOURCES ${SOURCE_DIR}/client/cl_http_curl.c) endif() -list(APPEND COMMON_LIBRARIES dl m) +list(APPEND COMMON_LIBRARIES + dl # Dynamic loader + m # Math library +) list(APPEND CLIENT_DEFINITIONS USE_ICON) list(APPEND RENDERER_DEFINITIONS USE_ICON) diff --git a/cmake/platforms/windows.cmake b/cmake/platforms/windows.cmake index 15de089d..30178fb3 100644 --- a/cmake/platforms/windows.cmake +++ b/cmake/platforms/windows.cmake @@ -15,7 +15,11 @@ if(USE_HTTP) list(APPEND CLIENT_LIBRARIES wininet) endif() -list(APPEND COMMON_LIBRARIES ws2_32 winmm psapi) +list(APPEND COMMON_LIBRARIES + ws2_32 # Windows Sockets 2 + winmm # timeBeginPeriod/timeEndPeriod + psapi # EnumProcesses +) if(MINGW) list(APPEND COMMON_LIBRARIES mingw32)