From a97fc23e16def46b08cf2de4b268d8b51adde4ab Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 6 Dec 2019 15:13:10 +0800 Subject: [PATCH] 1 --- server/gameserver/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/gameserver/CMakeLists.txt b/server/gameserver/CMakeLists.txt index 3bf7f96..3cd1111 100644 --- a/server/gameserver/CMakeLists.txt +++ b/server/gameserver/CMakeLists.txt @@ -71,7 +71,7 @@ set(EXECUTABLE_OUTPUT_PATH ) add_executable( - gameserver ${SRC_LIST} + gameserver${GAME_ID} ${SRC_LIST} ) add_custom_target(script_pb_protocol ALL) @@ -80,11 +80,11 @@ add_custom_command(TARGET script_pb_protocol COMMAND cp ../tools/protobuild/cs_*.* /root/opensource/game2009/client/assets/resources/ COMMAND python ../../third_party/tools/scripts/construct/build_pb.py --cpp_out=. --pb_files=cs_proto,cs_msgid,ss_proto,ss_msgid,metatable --python_out=../tools/robot/virtualclient ) -add_dependencies(gameserver script_pb_protocol) +add_dependencies(gameserver${GAME_ID} script_pb_protocol) if (CMAKE_BUILD_TYPE STREQUAL "Debug") target_link_libraries( - gameserver + gameserver${GAME_ID} pthread mysqlclient protobuf @@ -102,7 +102,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug") ) else() target_link_libraries( - gameserver + gameserver${GAME_ID} pthread mysqlclient protobuf