From df9fa6c8fda7be061a9dfe59f38ea6854b36989b Mon Sep 17 00:00:00 2001 From: minggo Date: Mon, 22 Jul 2019 09:34:56 +0800 Subject: [PATCH] fix twice copy lua scripts error (#19687) (#19936) --- templates/lua-template-default/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/templates/lua-template-default/CMakeLists.txt b/templates/lua-template-default/CMakeLists.txt index fade003c0a..a5c669fab1 100644 --- a/templates/lua-template-default/CMakeLists.txt +++ b/templates/lua-template-default/CMakeLists.txt @@ -42,13 +42,9 @@ set(res_res_folders set(res_src_folders "${CMAKE_CURRENT_SOURCE_DIR}/src" ) -set(res_script_folders - "${COCOS2DX_ROOT_PATH}/cocos/scripting/lua-bindings/script" - ) if(APPLE OR VS) cocos_mark_multi_resources(res_res RES_TO "Resources/res" FOLDERS ${res_res_folders}) cocos_mark_multi_resources(res_src RES_TO "Resources/src" FOLDERS ${res_src_folders}) - cocos_mark_multi_resources(res_script RES_TO "Resources/src/cocos" FOLDERS ${res_script_folders}) set(cc_common_res ${res_res} ${res_src} ${res_script}) endif() @@ -144,5 +140,4 @@ if(LINUX OR WINDOWS) set(APP_RES_DIR "$/Resources") cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR}/res FOLDERS ${res_res_folders}) cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR}/src FOLDERS ${res_src_folders}) - cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR}/src/cocos FOLDERS ${res_script_folders}) endif()