forked from github/server
fix find_package call for Lua
This commit is contained in:
parent
3b3379ad4b
commit
c4e15fd5ba
|
@ -6,7 +6,7 @@ endif(WIN32)
|
||||||
|
|
||||||
project (eressea-server C)
|
project (eressea-server C)
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/" ${CMAKE_MODULE_PATH})
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
find_package (LibXml2)
|
find_package (LibXml2)
|
||||||
|
@ -14,10 +14,10 @@ find_package (SQLite3)
|
||||||
find_package (Curses)
|
find_package (Curses)
|
||||||
find_package (ToLua REQUIRED)
|
find_package (ToLua REQUIRED)
|
||||||
if (TOLUA_FOUND)
|
if (TOLUA_FOUND)
|
||||||
if (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.2")
|
if (${TOLUA_VERSION_STRING} VERSION_GREATER "5.2")
|
||||||
find_package (Lua 5.2 REQUIRED)
|
|
||||||
elseif (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.1")
|
|
||||||
find_package (Lua 5.2 REQUIRED)
|
find_package (Lua 5.2 REQUIRED)
|
||||||
|
elseif (${TOLUA_VERSION_STRING} VERSION_GREATER "5.1")
|
||||||
|
find_package (Lua 5.1 REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
endif(TOLUA_FOUND)
|
endif(TOLUA_FOUND)
|
||||||
|
|
||||||
|
|
|
@ -187,10 +187,12 @@ target_link_libraries(eressea
|
||||||
${INIPARSER_LIBRARIES}
|
${INIPARSER_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
find_library(C_MATH_LIBRARY m)
|
||||||
|
|
||||||
add_executable(convert convert.c)
|
add_executable(convert convert.c)
|
||||||
target_link_libraries(convert
|
target_link_libraries(convert
|
||||||
game
|
game
|
||||||
${LUA_MATH_LIBRARY}
|
${C_MATH_LIBRARY}
|
||||||
${STORAGE_LIBRARIES}
|
${STORAGE_LIBRARIES}
|
||||||
${CLIBS_LIBRARIES}
|
${CLIBS_LIBRARIES}
|
||||||
${INIPARSER_LIBRARIES}
|
${INIPARSER_LIBRARIES}
|
||||||
|
|
Loading…
Reference in New Issue