Skip to content

Commit b7f10b0

Browse files
committed
Update CMake. Also search for LuaNativeObjects in PATH
for detecting when installed with LuaRocks
1 parent dfbaa6a commit b7f10b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/LuaNativeObjects.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# Lua Native Objects
33
#
44

5-
find_program(LUA_NATIVE_OBJECTS_EXECUTABLE native_objects.lua
6-
PATHS ${CMAKE_SOURCE_DIR}/../LuaNativeObjects
5+
find_program(LUA_NATIVE_OBJECTS_EXECUTABLE
6+
NAMES native_objects.lua native_objects
7+
PATHS ${CMAKE_SOURCE_DIR}/../LuaNativeObjects ENV PATH
78
DOC "LuaNativeObjects executable path")
89
set(USE_PRE_GENERATED_BINDINGS TRUE CACHE BOOL
910
"Set this to FALSE to re-generate bindings using LuaNativeObjects")

0 commit comments

Comments
 (0)