summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLejo <Lejo_1@web.de>2021-11-26 19:31:05 +0100
committerGitHub <noreply@github.com>2021-11-26 19:31:05 +0100
commitb9051386ae296a6112383725bc8bfcd96dc9a226 (patch)
treee3dbb8998a73e19b6b0bc6c24d7d9f3515ed6ea2 /CMakeLists.txt
parent7a1464d783742512fdc6e0a083ffadd0ce63c1b4 (diff)
downloadminetest-b9051386ae296a6112383725bc8bfcd96dc9a226.tar.gz
minetest-b9051386ae296a6112383725bc8bfcd96dc9a226.tar.bz2
minetest-b9051386ae296a6112383725bc8bfcd96dc9a226.zip
Add Lua bitop library (#9847)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b41738c06..3ba99bc21 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -261,6 +261,11 @@ endif()
find_package(GMP REQUIRED)
find_package(Json REQUIRED)
find_package(Lua REQUIRED)
+if(NOT USE_LUAJIT)
+ set(LUA_BIT_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/bitop)
+ set(LUA_BIT_LIBRARY bitop)
+ add_subdirectory(lib/bitop)
+endif()
# JsonCpp doesn't compile well on GCC 4.8
if(NOT USE_SYSTEM_JSONCPP)