@@ -65,14 +65,14 @@ if(BUILD_GAME)
6565 set_target_properties (game PROPERTIES LINKER_LANGUAGE CXX )
6666 find_package (SDL2 REQUIRED )
6767 include_directories (${SDL2_INCLUDE_DIRS} )
68- target_link_libraries (game ${SDL2_LIBRARIES} SDL2_net SDL2_mixer m dl )
68+ target_link_libraries (game ${SDL2_LIBRARIES} SDL2 SDL2_net SDL2_mixer m dl )
6969 endif ()
70-
70+
7171 target_compile_definitions (game PUBLIC D2EXE )
7272endif ()
7373
7474# Build D2Common.dll
75- if (BUILD_D2CLIENT OR BUILD_D2GAME )
75+ if (BUILD_D2CLIENT OR BUILD_D2SERVER )
7676 message ("Including D2Common.dll files" )
7777
7878 file (GLOB_RECURSE D2COMMON_SRC Common/*.h Common/*hpp Common/*.c Common/*.cpp )
@@ -107,12 +107,12 @@ if(BUILD_D2CLIENT)
107107 set_target_properties (D2Client PROPERTIES OUTPUT_NAME D2Client )
108108 set_target_properties (D2Client PROPERTIES LINKER_LANGUAGE CXX )
109109
110- target_link_libraries (D2Client ${STATIC_LIBRARIES} )
110+ target_link_libraries (D2Client ${STATIC_LIBRARIES} D2Common )
111111 target_compile_definitions (D2Client PUBLIC D2CLIENT )
112112endif ()
113113
114114
115- # Build D2Game .dll
115+ # Build D2Server .dll
116116if (BUILD_D2SERVER)
117117 message ("Including D2Server.dll files" )
118118
@@ -127,6 +127,6 @@ if(BUILD_D2SERVER)
127127 set_target_properties (D2Server PROPERTIES OUTPUT_NAME D2Server )
128128 set_target_properties (D2Server PROPERTIES LINKER_LANGUAGE CXX )
129129
130- target_link_libraries (D2Server ${STATIC_LIBRARIES} )
130+ target_link_libraries (D2Server ${STATIC_LIBRARIES} D2Common )
131131 target_compile_definitions (D2Server PUBLIC D2SERVER )
132132endif ()
0 commit comments