CMake: Change minimum required version to 3.13, due to it being the

default in debian stable which we officially will support now, and
changed "lua" to find_directories result in UNIX linking of libraries
This commit is contained in:
Lion Kortlepel
2020-12-27 22:06:48 +01:00
parent 04cf7ca092
commit c5d1682d5e

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.18)
cmake_minimum_required(VERSION 3.13)
project(Server)
set(CMAKE_CXX_STANDARD 17)
@@ -31,7 +31,7 @@ find_package(Lua REQUIRED)
target_include_directories(BeamMP-Server PUBLIC ${LUA_INCLUDE_DIR})
if (UNIX)
target_link_libraries(BeamMP-Server z pthread stdc++fs ${Boost_LINK_DIRS} lua curl dl)
target_link_libraries(BeamMP-Server z pthread stdc++fs ${Boost_LINK_DIRS} ${LUA_LIBRARIES} curl dl)
elseif (WIN32)
include(FindLua)
find_package(ZLIB REQUIRED)