Fixed Linux build
This commit is contained in:
parent
91fa882d6e
commit
ad93e28276
@ -1,10 +1,11 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(mysqloo)
|
||||
add_subdirectory(GmodLUA)
|
||||
|
||||
file(GLOB_RECURSE MYSQLOO_SRC "src/*.h" "src/*.cpp")
|
||||
set(SOURCE_FILES ${MYSQLOO_SRC} src/Main.cpp)
|
||||
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
||||
set (CMAKE_CXX_STANDARD 14)
|
||||
|
||||
add_library(mysqloo SHARED ${SOURCE_FILES})
|
||||
target_link_libraries(mysqloo gmod-module-base)
|
||||
@ -36,5 +37,4 @@ else ()
|
||||
target_link_libraries(mysqloo ${MARIADB_CLIENT_LIB} ${SSL_LIB} ${CRYPTO_LIB} Threads::Threads ${CMAKE_DL_LIBS})
|
||||
endif ()
|
||||
|
||||
|
||||
set_gmod_suffix_prefix(mysqloo)
|
@ -1,6 +1,5 @@
|
||||
#include "LuaTransaction.h"
|
||||
#include "LuaQuery.h"
|
||||
#include "../mysql/Transaction.h"
|
||||
|
||||
MYSQLOO_LUA_FUNCTION(addQuery) {
|
||||
auto luaTransaction = LuaObject::getLuaObject<LuaTransaction>(LUA);
|
||||
|
@ -3,6 +3,7 @@
|
||||
#define MYSQLOO_LUATRANSACTION_H
|
||||
|
||||
#include "LuaIQuery.h"
|
||||
#include "../mysql/Transaction.h"
|
||||
|
||||
class LuaTransaction : public LuaIQuery {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user