Copy LuaJIT to the same directory as it is used from

This commit is contained in:
Mark Jansen
2024-04-03 21:16:56 +02:00
parent 846f6053f9
commit 8401cc7d6f
+1 -1
View File
@@ -325,7 +325,7 @@ if(MSVC)
# Copy LuaJIT source to binary dir. LuaJIT builds in-source, # Copy LuaJIT source to binary dir. LuaJIT builds in-source,
# and we don't want to modify the original source tree, so # and we don't want to modify the original source tree, so
# we copy it. # we copy it.
file(COPY libs/${MEGA_LUAJIT_DIR} DESTINATION libs) file(COPY libs/${MEGA_LUAJIT_DIR} DESTINATION ${CMAKE_BINARY_DIR}/libs)
set(MEGA_LUAJIT_SOURCE_DIR ${CMAKE_BINARY_DIR}/libs/${MEGA_LUAJIT_DIR}) set(MEGA_LUAJIT_SOURCE_DIR ${CMAKE_BINARY_DIR}/libs/${MEGA_LUAJIT_DIR})