Merge topic 'FindLua-exact'

c4a56b9c FindLua: fix wrong version list if EXACT is given
This commit is contained in:
Brad King 2014-10-03 15:10:14 -04:00 committed by CMake Topic Stage
commit 8ec00743a6
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function(set_lua_version_vars)
if (Lua_FIND_VERSION_EXACT)
if (Lua_FIND_VERSION_COUNT GREATER 1)
set(lua_append_versions ${Lua_FIND_VERSION_MAJOR} ${Lua_FIND_VERSION_MINOR})
set(lua_append_versions ${Lua_FIND_VERSION_MAJOR}.${Lua_FIND_VERSION_MINOR})
endif ()
elseif (Lua_FIND_VERSION)
# once there is a different major version supported this should become a loop