Skip to content

Commit

Permalink
Fix some issues with the build system
Browse files Browse the repository at this point in the history
There is still an issue: `aguya.cpp:51:16: error: ‘kaguya’ has not been declared`.

Signed-off-by: Gaël Écorchard <gael@km-robotics.cz>
  • Loading branch information
Gaël Écorchard authored and ThePhD committed Jul 13, 2024
1 parent c4e7247 commit 8525c20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmake/Packages/FindKaguyaBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
8 changes: 5 additions & 3 deletions cmake/Packages/FindLuaBuild/LuaVanilla.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8525c20

Please sign in to comment.