diff options
author | sfan5 <sfan5@live.de> | 2020-12-23 22:03:49 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-12-24 13:44:54 +0100 |
commit | 74762470b2aa11a5271b846549ff14b86c1705d2 (patch) | |
tree | cf4fd29ba05a94395674ac6cd5b2eeb7bdac0ee1 /lib/lua | |
parent | 289425f6bd6cfe1f66218918d9d5bd1b9f89aa7c (diff) | |
download | minetest-74762470b2aa11a5271b846549ff14b86c1705d2.tar.gz minetest-74762470b2aa11a5271b846549ff14b86c1705d2.tar.bz2 minetest-74762470b2aa11a5271b846549ff14b86c1705d2.zip |
Fix some minor code issues all over the place
Diffstat (limited to 'lib/lua')
-rw-r--r-- | lib/lua/CMakeLists.txt | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt index 119dd6302..5d0dc0f70 100644 --- a/lib/lua/CMakeLists.txt +++ b/lib/lua/CMakeLists.txt @@ -1,5 +1,3 @@ -cmake_minimum_required(VERSION 2.4 FATAL_ERROR) - project(lua C) set(LUA_VERSION_MAJOR 5) @@ -15,9 +13,8 @@ set(LIBS) if(APPLE) set(DEFAULT_POSIX TRUE) - set(DEFAULT_DLOPEN ON) - # use this on Mac OS X 10.3- - option(LUA_USE_MACOSX "Mac OS X 10.3-" OFF) + set(DEFAULT_DLOPEN OFF) + set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_USE_MACOSX") elseif(UNIX OR CYGWIN) set(DEFAULT_POSIX TRUE) elseif(WIN32) @@ -32,12 +29,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux") set(DEFAULT_DLOPEN ON) endif() -# For "Mac OS X 10.3-" -if(LUA_USE_MACOSX) - set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_USE_MACOSX") - set(LUA_USE_DLOPEN FALSE) -endif(LUA_USE_MACOSX) - option(LUA_USE_DLOPEN "Enable dlopen support." ${DEFAULT_DLOPEN}) mark_as_advanced(LUA_USE_DLOPEN) |