Skip to content

Commit

Permalink
Fix deps/luajit.cmake on Windows for rolling releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Aug 23, 2023
1 parent 42ec6ca commit 0f5add2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deps/luajit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,12 @@ if(MINILUA_USE_LIBM)
TARGET_LINK_LIBRARIES(minilua m)
endif()

set(GIT_FORMAT %ct)
if (CMAKE_HOST_SYSTEM_NAME EQUAL Windows)
set(GIT_FORMAT %%ct)
endif()
add_custom_command(OUTPUT ${LUAJIT_DIR}/src/luajit_relver.txt
COMMAND git show -s --format=%ct > ${LUAJIT_DIR}/src/luajit_relver.txt
COMMAND git show -s --format=${GIT_FORMAT} > ${LUAJIT_DIR}/src/luajit_relver.txt
WORKING_DIRECTORY ${LUAJIT_DIR}
)

Expand Down

0 comments on commit 0f5add2

Please sign in to comment.