comparison Resources/CMake/LuaConfiguration.cmake @ 429:09b3c6265a94

unit test for fedora 18 problem
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 May 2013 15:13:01 +0200
parents 26bb4d05a072
children 27d32fc6209a
comparison
equal deleted inserted replaced
428:6f00823be12a 429:09b3c6265a94
54 link_libraries(Lua) 54 link_libraries(Lua)
55 55
56 source_group(ThirdParty\\Lua REGULAR_EXPRESSION ${LUA_SOURCES_DIR}/.*) 56 source_group(ThirdParty\\Lua REGULAR_EXPRESSION ${LUA_SOURCES_DIR}/.*)
57 57
58 else() 58 else()
59 CHECK_INCLUDE_FILE_CXX(lua.h HAVE_LUA_H) 59 include(FindLua51)
60 if (NOT HAVE_LUA_H) 60
61 if (NOT LUA51_FOUND)
61 message(FATAL_ERROR "Please install the liblua-dev package") 62 message(FATAL_ERROR "Please install the liblua-dev package")
62 endif() 63 endif()
63 64
64 CHECK_LIBRARY_EXISTS(lua lua_pcall "" HAVE_LUA_LIB) 65 include_directories(${LUA_INCLUDE_DIR})
65 if (NOT HAVE_LUA_LIB) 66 link_libraries(${LUA_LIBRARIES})
66 message(FATAL_ERROR "Please install the liblua-dev package")
67 endif()
68
69 link_libraries(lua)
70 endif() 67 endif()