From decdbab2e68427914f3d284acc0f6184719306c0 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Tue, 1 Jul 2014 15:23:29 +0200 Subject: [PATCH] LuaProxy compilation under MinGW. --- lib/luaproxy/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/luaproxy/CMakeLists.txt b/lib/luaproxy/CMakeLists.txt index f115036e1..58ca87cd3 100644 --- a/lib/luaproxy/CMakeLists.txt +++ b/lib/luaproxy/CMakeLists.txt @@ -23,14 +23,17 @@ if (WIN32) set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NOENTRY /DEF:lua5.1.def /MANIFEST:NO") set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NOENTRY /DEF:lua5.1.def /MANIFEST:NO") set(CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG} /NOENTRY /DEF:lua5.1.def /MANIFEST:NO") + elseif (MINGW) + # MinGW requires no further flags and has been tested else() - message ("This code has not been tested on your compiler. Please report your success or failure in the forum.") + message ("LuaProxy: This cmake code has not been tested on your compiler. Please report your success or failure in the forum.") endif() add_library(luaproxy SHARED "lua5.1.def" "Dummy.c") set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/MCServer) set_target_properties(luaproxy PROPERTIES OUTPUT_NAME "lua5.1" + PREFIX "" ) target_link_libraries(luaproxy lua)