diff --git a/cmake/Packages/FindKaguyaBuild.cmake b/cmake/Packages/FindKaguyaBuild.cmake index fe7719a3..8d0579f8 100644 --- a/cmake/Packages/FindKaguyaBuild.cmake +++ b/cmake/Packages/FindKaguyaBuild.cmake @@ -45,6 +45,7 @@ ExternalProject_Add(KAGUYA_BUILD_SOURCE GIT_SHALLOW TRUE GIT_SUBMODULES "" GIT_REPOSITORY https://github.com/satoren/kaguya.git + GIT_TAG main PREFIX ${kaguya_build_toplevel} SOURCE_DIR ${kaguya_build_toplevel} DOWNLOAD_DIR ${kaguya_build_toplevel} diff --git a/cmake/Packages/FindLuaBuild/LuaVanilla.cmake b/cmake/Packages/FindLuaBuild/LuaVanilla.cmake index b4c3c800..2b30dde5 100644 --- a/cmake/Packages/FindLuaBuild/LuaVanilla.cmake +++ b/cmake/Packages/FindLuaBuild/LuaVanilla.cmake @@ -199,7 +199,7 @@ extern \"C\" { file(TO_NATIVE_PATH "${LUA_VANILLA_SOURCE_LUA_HPP}" LUA_VANILLA_SOURCE_LUA_HPP) endif() - set(LUA_VANILLA_INCLUDE_DIRS ${lua-vanilla_SOURCE_DIR}/include) + set(LUA_VANILLA_INCLUDE_DIRS ${lua-vanilla_SOURCE_DIR}/src) endif() # # Target names @@ -246,12 +246,14 @@ else() endif() if (WIN32) else() - target_compile_definitions(${liblua} + target_compile_definitions(${liblua} PRIVATE LUA_USE_LINUX) endif() target_compile_options(${liblua} PRIVATE ${LUA_VANILLA_LUALIB_COMPILER_OPTIONS}) -add_dependencies(${liblua} LUA_VANILLA) +if (LUA_LOCAL_DIR) + add_dependencies(${liblua} LUA_VANILLA) +endif() target_link_libraries(${liblua} PRIVATE ${CMAKE_DL_LIBS}) if (UNIX) target_link_libraries(${liblua} PRIVATE m)