aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-10-15 12:02:02 +0200
committersfan5 <sfan5@live.de>2022-10-15 12:02:02 +0200
commit25c5400250c5c6877e2144a759995aa47b24cff3 (patch)
tree4d2f990d8f1be7f3c577d22fb74815e2244374a0 /src
parentf680d102599878b02c694127afb9260b5e53b8ed (diff)
downloadminetest-25c5400250c5c6877e2144a759995aa47b24cff3.tar.xz
Exclude MSVC from new Lua sanity check
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 64aef356a..8bf896bb1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -692,11 +692,12 @@ if(USE_LUAJIT)
"THIS APPLIES ESPECIALLY ON macOS OR Linux/aarch64!")
message(WARNING ${explanation_msg})
endif()
-else()
+elseif(NOT MSVC)
set(CMAKE_REQUIRED_LIBRARIES "")
unset(HAVE_ATCCALL CACHE)
# Note: we need to check the function without having the library
# available for linking, so check_symbol_exists won't work.
+ # Incidentally this doesn't seem to work on MSVC...
check_c_source_compiles("#include <lua.h>\nint main(){return sizeof(lua_atccall);}" HAVE_ATCCALL)
if(NOT HAVE_ATCCALL)
string(CONCAT explanation_msg