From 4435d7e4297220228174385302d430f1fdf3d090 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 12 Jul 2020 22:49:11 +0100 Subject: [PATCH] Rename lua to lualib --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23d58bc..fc14f1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,12 +2,7 @@ cmake_minimum_required (VERSION 3.13) project (lsqlite C) add_library(lsqlite lsqlite3.c) -target_link_libraries(lsqlite PUBLIC sqlite3 lua) - -# Lua is required as a DLL for LuaSQLite: -if (WIN32) - target_compile_definitions(lsqlite PRIVATE LUA_BUILD_AS_DLL) -endif() +target_link_libraries(lsqlite PUBLIC sqlite3 lualib) # FreeBSD requires us to define this to get POSIX 2001 standard if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")