Don't needs copy plainlua.dll when use luajit

This commit is contained in:
deal 2022-01-17 23:50:05 +08:00 committed by GitHub
parent 9c88866354
commit b5b176183c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -228,10 +228,12 @@ function(cocos_copy_target_dll cocos_target)
endfunction()
function(cocos_copy_lua_dlls cocos_target)
add_custom_command(TARGET ${cocos_target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_BINARY_DIR}/bin/\$\(Configuration\)/plainlua.dll"
$<TARGET_FILE_DIR:${cocos_target}>)
if(LUA_ENGINE STREQUAL "plainlua")
add_custom_command(TARGET ${cocos_target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_BINARY_DIR}/bin/\$\(Configuration\)/plainlua.dll"
$<TARGET_FILE_DIR:${cocos_target}>)
endif()
endfunction()
# mark `FILES` as resources, files will be put into sub-dir tree depend on its absolute path