From 9cf5907ca0e88b0855600b50b2e807955f0dfd1d Mon Sep 17 00:00:00 2001 From: Foe Date: Fri, 2 Aug 2024 16:50:25 +0200 Subject: [PATCH] Disable building of Lua executables These are not needed for Eluna to build properly. Could possibly be added as a cmake option later on if needs be. --- dep/lualib/lua/CMakeLists.txt | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/dep/lualib/lua/CMakeLists.txt b/dep/lualib/lua/CMakeLists.txt index a678ab30f61..be267834d7d 100644 --- a/dep/lualib/lua/CMakeLists.txt +++ b/dep/lualib/lua/CMakeLists.txt @@ -122,16 +122,16 @@ elseif (UNIX) set_target_properties(lualib_static PROPERTIES OUTPUT_NAME ${LUA_VERSION}) endif() -add_executable(lua_interpreter ${LUA_SOURCE_FOLDER}/lua.c) -target_link_libraries(lua_interpreter lualib_static) -target_compile_definitions(lua_interpreter PRIVATE _CRT_SECURE_NO_WARNINGS) -set_target_properties(lua_interpreter PROPERTIES OUTPUT_NAME ${LUA_VERSION}_interpreter) -if (WIN32) - install(TARGETS lua_interpreter DESTINATION "${CMAKE_INSTALL_PREFIX}") - install(FILES $ DESTINATION "${CMAKE_INSTALL_PREFIX}" OPTIONAL) -else() - install(TARGETS lua_interpreter DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -endif() +#add_executable(lua_interpreter ${LUA_SOURCE_FOLDER}/lua.c) +#target_link_libraries(lua_interpreter lualib_static) +#target_compile_definitions(lua_interpreter PRIVATE _CRT_SECURE_NO_WARNINGS) +#set_target_properties(lua_interpreter PROPERTIES OUTPUT_NAME ${LUA_VERSION}_interpreter) +#if (WIN32) +# install(TARGETS lua_interpreter DESTINATION "${CMAKE_INSTALL_PREFIX}") +# install(FILES $ DESTINATION "${CMAKE_INSTALL_PREFIX}" OPTIONAL) +#else() +# install(TARGETS lua_interpreter DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") +#endif() #install(TARGETS lualib # DESTINATION "${CMAKE_INSTALL_PREFIX}" # LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lua/lib" @@ -139,13 +139,13 @@ endif() # ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lua/lib" #) -add_executable(lua_compiler ${LUA_SOURCE_FOLDER}/luac.c) -target_link_libraries(lua_compiler lualib_static) -target_compile_definitions(lua_compiler PRIVATE _CRT_SECURE_NO_WARNINGS) -set_target_properties(lua_compiler PROPERTIES OUTPUT_NAME ${LUA_VERSION}_compiler) -if (WIN32) - install(TARGETS lua_compiler DESTINATION "${CMAKE_INSTALL_PREFIX}") - install(FILES $ DESTINATION "${CMAKE_INSTALL_PREFIX}" OPTIONAL) -else() - install(TARGETS lua_compiler DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") -endif() +#add_executable(lua_compiler ${LUA_SOURCE_FOLDER}/luac.c) +#target_link_libraries(lua_compiler lualib_static) +#target_compile_definitions(lua_compiler PRIVATE _CRT_SECURE_NO_WARNINGS) +#set_target_properties(lua_compiler PROPERTIES OUTPUT_NAME ${LUA_VERSION}_compiler) +#if (WIN32) +# install(TARGETS lua_compiler DESTINATION "${CMAKE_INSTALL_PREFIX}") +# install(FILES $ DESTINATION "${CMAKE_INSTALL_PREFIX}" OPTIONAL) +#else() +# install(TARGETS lua_compiler DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") +#endif()