shithub: choc

Download patch

ref: 557185dd7f66b36ffb57b418b47aa39ae09744b6
parent: 7afbf68abcaad446c3f287ed502c6ebbb2fb10e8
author: Turo Lamminen <turol@iki.fi>
date: Tue Jul 12 16:48:51 EDT 2022

Add missing library SDL2::SDL2 to server cmake build

It was automatically being pulled in by SDL2::net but without that
will be missing.

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -32,7 +32,7 @@
 add_executable("${PROGRAM_PREFIX}server" WIN32 ${COMMON_SOURCE_FILES} ${DEDSERV_FILES})
 target_include_directories("${PROGRAM_PREFIX}server"
                            PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../")
-target_link_libraries("${PROGRAM_PREFIX}server" SDL2::SDL2main SDL2::net)
+target_link_libraries("${PROGRAM_PREFIX}server" SDL2::SDL2main SDL2::SDL2 SDL2::net)
 
 # Source files used by the game binaries (chocolate-doom, etc.)