diff options
author | Mattes D <github@xoft.cz> | 2014-07-01 06:40:38 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-07-01 06:40:38 +0200 |
commit | 4f60f5aef4517d6d3eaf2ea9f7aae30e6a97da25 (patch) | |
tree | ddbfeaa3d294827bbfe0faa26f8ba5b4e02e625a /lib/sqlite/CMakeLists.txt | |
parent | typo (diff) | |
download | cuberite-4f60f5aef4517d6d3eaf2ea9f7aae30e6a97da25.tar cuberite-4f60f5aef4517d6d3eaf2ea9f7aae30e6a97da25.tar.gz cuberite-4f60f5aef4517d6d3eaf2ea9f7aae30e6a97da25.tar.bz2 cuberite-4f60f5aef4517d6d3eaf2ea9f7aae30e6a97da25.tar.lz cuberite-4f60f5aef4517d6d3eaf2ea9f7aae30e6a97da25.tar.xz cuberite-4f60f5aef4517d6d3eaf2ea9f7aae30e6a97da25.tar.zst cuberite-4f60f5aef4517d6d3eaf2ea9f7aae30e6a97da25.zip |
Diffstat (limited to '')
-rw-r--r-- | lib/sqlite/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sqlite/CMakeLists.txt b/lib/sqlite/CMakeLists.txt index 9add2280b..48bb5f15c 100644 --- a/lib/sqlite/CMakeLists.txt +++ b/lib/sqlite/CMakeLists.txt @@ -9,8 +9,14 @@ file(GLOB SOURCE ) -# add headers to MSVC project files: +# Lua is required as a DLL for LuaSQLite: if (WIN32) + add_definitions(-DLUA_BUILD_AS_DLL) +endif() + + +# add headers to MSVC project files: +if (MSVC) file(GLOB HEADERS "src/*.h") list(REMOVE_ITEM SOURCE "${PROJECT_SOURCE_DIR}/src/lua.h" "${PROJECT_SOURCE_DIR}/src/luac.h") set(SOURCE ${SOURCE} ${HEADERS}) @@ -25,5 +31,5 @@ endif() add_library(sqlite ${SOURCE}) if (UNIX) - target_link_libraries(sqlite ${DYNAMIC_LOADER}) + target_link_libraries(sqlite ${DYNAMIC_LOADER} lua) endif() |