Merge pull request #500 from yokogawa-k/fix-search-non-versioned-lua

Fix for non-versioned lua not being searched in Cmake
This commit is contained in:
Axel Kittenberger 2018-03-26 11:36:26 +02:00 committed by GitHub
commit 13bdd9075f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}")