Skip to content

Commit 277dece

Browse files
committed
Fix custom methods for luajit
1 parent 1caaccc commit 277dece

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
set(CUSTOM_METHODS_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/methods/Custom/CustomMethods.h")
22
if(EXISTS "${CUSTOM_METHODS_HEADER}")
3+
if(NOT ${LUA_VERSION} MATCHES "luajit")
34
target_compile_definitions(lualib PUBLIC ELUNA_USE_CUSTOM_METHODS)
5+
else()
6+
target_compile_definitions(lualib INTERFACE ELUNA_USE_CUSTOM_METHODS)
7+
endif()
48
endif()
59

610
# Define variables for paths

0 commit comments

Comments
 (0)