File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ ExternalProject_Add(KAGUYA_BUILD_SOURCE
45
45
GIT_SHALLOW TRUE
46
46
GIT_SUBMODULES ""
47
47
GIT_REPOSITORY https://github.com/satoren/kaguya.git
48
+ GIT_TAG main
48
49
PREFIX ${kaguya_build_toplevel}
49
50
SOURCE_DIR ${kaguya_build_toplevel}
50
51
DOWNLOAD_DIR ${kaguya_build_toplevel}
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ extern \"C\" {
199
199
file (TO_NATIVE_PATH "${LUA_VANILLA_SOURCE_LUA_HPP} " LUA_VANILLA_SOURCE_LUA_HPP)
200
200
endif ()
201
201
202
- set (LUA_VANILLA_INCLUDE_DIRS ${lua-vanilla_SOURCE_DIR}/include )
202
+ set (LUA_VANILLA_INCLUDE_DIRS ${lua-vanilla_SOURCE_DIR}/src )
203
203
endif ()
204
204
205
205
# # Target names
@@ -246,12 +246,14 @@ else()
246
246
endif ()
247
247
if (WIN32 )
248
248
else ()
249
- target_compile_definitions (${liblua}
249
+ target_compile_definitions (${liblua}
250
250
PRIVATE LUA_USE_LINUX)
251
251
endif ()
252
252
target_compile_options (${liblua}
253
253
PRIVATE ${LUA_VANILLA_LUALIB_COMPILER_OPTIONS} )
254
- add_dependencies (${liblua} LUA_VANILLA)
254
+ if (LUA_LOCAL_DIR)
255
+ add_dependencies (${liblua} LUA_VANILLA)
256
+ endif ()
255
257
target_link_libraries (${liblua} PRIVATE ${CMAKE_DL_LIBS} )
256
258
if (UNIX )
257
259
target_link_libraries (${liblua} PRIVATE m)
You can’t perform that action at this time.
0 commit comments