Lines Matching refs:_prefix
27 # _prefix - Prefix added to all variables exposed, e.g. "lua" or "luajit"
30 function(_lua_set_version_vars _prefix _lua_suffix)
33 if (${_prefix}_FIND_VERSION_EXACT)
34 if (${_prefix}_FIND_VERSION_COUNT GREATER 1)
35 … set(_${_prefix}_append_versions ${${_prefix}_FIND_VERSION_MAJOR}.${${_prefix}_FIND_VERSION_MINOR})
37 elseif (${_prefix}_FIND_VERSION)
39 if (NOT ${_prefix}_FIND_VERSION_MAJOR GREATER 5)
40 if (${_prefix}_FIND_VERSION_COUNT EQUAL 1)
41 set(_${_prefix}_append_versions ${${_prefix}_VERSIONS5})
43 foreach (subver IN LISTS ${_prefix}_VERSIONS5)
44 if (NOT subver VERSION_LESS ${${_prefix}_FIND_VERSION})
45 list(APPEND _${_prefix}_append_versions ${subver})
52 set(_${_prefix}_append_versions ${LUA_VERSIONS5})
55 list(APPEND _${_prefix}_include_subdirs "include/lua" "include")
57 foreach (ver IN LISTS _${_prefix}_append_versions)
59 list(APPEND _${_prefix}_include_subdirs
66 list(APPEND _${_prefix}_library_names
74 set(_${_prefix}_include_subdirs "${_${_prefix}_include_subdirs}" PARENT_SCOPE)
75 set(_${_prefix}_append_versions "${_${_prefix}_append_versions}" PARENT_SCOPE)
76 set(_${_prefix}_library_names "${_${_prefix}_library_names}" PARENT_SCOPE)