cmake: Cache Lua library, as we won't define it the next time.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 15:16:48 +0000 (15:16 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 15:16:48 +0000 (15:16 +0000)
extras/buildsystem/cmake/include/FindLua.cmake

index 0adf645..8b49e7b 100644 (file)
@@ -20,7 +20,7 @@ if (NOT Lua_SEARCHED)
     if (NOT Lua_FOUND)
         find_library( Lua_LIBRARY NAMES lua5.1 lua51 lua)
         if (Lua_LIBRARY)
-              set(Lua_LIBRARIES "${Lua_LIBRARY}")
+              set(Lua_LIBRARIES "${Lua_LIBRARY}" CACHE INTERNAL "")
               set(Lua_FOUND TRUE CACHE INTERNAL "")
         endif (Lua_LIBRARY)
     endif (NOT Lua_FOUND)