From c5d1682d5ee8eb8cee5f59c766d936361afdf791 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 27 Dec 2020 22:06:48 +0100 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b17cb4e..e353205 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)