mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
fix non-versioned lua not search in cmake
"FOREACH" ignore empty elements, but "FOREACH IN LISTS" include emoty elements. https://cmake.org/cmake/help/latest/command/foreach.html
This commit is contained in:
parent
9b47a1f8fe
commit
0af99d8d5b
@ -39,7 +39,7 @@ SET(_POSSIBLE_LUA_INCLUDE include include/lua)
|
||||
SET(_POSSIBLE_SUFFIXES "52" "5.2" "-5.2" "53" "5.3" "-5.3" "")
|
||||
|
||||
# Set up possible search names and locations
|
||||
FOREACH(_SUFFIX ${_POSSIBLE_SUFFIXES})
|
||||
FOREACH(_SUFFIX IN LISTS _POSSIBLE_SUFFIXES)
|
||||
LIST(APPEND _POSSIBLE_LUA_INCLUDE "include/lua${_SUFFIX}")
|
||||
LIST(APPEND _POSSIBLE_LUA_EXECUTABLE "lua${_SUFFIX}")
|
||||
LIST(APPEND _POSSIBLE_LUA_COMPILER "luac${_SUFFIX}")
|
||||
|
Loading…
Reference in New Issue
Block a user