build: various fixes

- simplify lua interpreter search
- fix incorrect variable name in BuildLua.cmake
- build PUC Lua with -O2
- silence non-mandatory find_package search for libuv
- simplify Find modules
- Prefer using the explicitly set CI_BUILD over relying on the
  environment variable "CI".
This commit is contained in:
dundargoc
2023-09-04 00:00:26 +02:00
committed by GitHub
parent af899971b9
commit c50951a4d0
8 changed files with 12 additions and 47 deletions

View File

@ -23,7 +23,7 @@ foreach(DLL_NAME ${DLLS})
message(FATAL_ERROR "Unable to find dependency ${DLL_NAME}")
endif()
if($ENV{CI} MATCHES "true")
if(CI_BUILD)
message("Copying ${DLL_NAME} to ${DST}")
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${DLL_PATH} ${DST})