diff options
author | Mattes D <github@xoft.cz> | 2014-01-17 08:09:03 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-01-17 08:09:03 +0100 |
commit | 4385ab008f35a0042198754d1cad80a3b7410b57 (patch) | |
tree | 40427c78b1eabc6c32442f10f1a8c71c7e21604e | |
parent | Fixed block break packet number (diff) | |
download | cuberite-4385ab008f35a0042198754d1cad80a3b7410b57.tar cuberite-4385ab008f35a0042198754d1cad80a3b7410b57.tar.gz cuberite-4385ab008f35a0042198754d1cad80a3b7410b57.tar.bz2 cuberite-4385ab008f35a0042198754d1cad80a3b7410b57.tar.lz cuberite-4385ab008f35a0042198754d1cad80a3b7410b57.tar.xz cuberite-4385ab008f35a0042198754d1cad80a3b7410b57.tar.zst cuberite-4385ab008f35a0042198754d1cad80a3b7410b57.zip |
Diffstat (limited to '')
-rw-r--r-- | lib/lua/CMakeLists.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt index 02c20388d..4babae9b2 100644 --- a/lib/lua/CMakeLists.txt +++ b/lib/lua/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required (VERSION 2.6) +cmake_minimum_required (VERSION 2.8.2) project (lua) include_directories ("${PROJECT_SOURCE_DIR}/../../src/") @@ -25,7 +25,15 @@ if (WIN32) # Output the executable into the $/MCServer folder, so that MCServer can find it: set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/MCServer) - SET_TARGET_PROPERTIES(${EXECUTABLE} PROPERTIES + SET_TARGET_PROPERTIES(lua PROPERTIES + ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/MCServer + ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/MCServer + ARCHIVE_OUTPUT_DIRECTORY_DEBUGPROFILE ${CMAKE_SOURCE_DIR}/MCServer + ARCHIVE_OUTPUT_DIRECTORY_RELEASEPROFILE ${CMAKE_SOURCE_DIR}/MCServer + LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/MCServer + LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/MCServer + LIBRARY_OUTPUT_DIRECTORY_DEBUGPROFILE ${CMAKE_SOURCE_DIR}/MCServer + LIBRARY_OUTPUT_DIRECTORY_RELEASEPROFILE ${CMAKE_SOURCE_DIR}/MCServer RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/MCServer RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/MCServer RUNTIME_OUTPUT_DIRECTORY_DEBUGPROFILE ${CMAKE_SOURCE_DIR}/MCServer @@ -38,6 +46,9 @@ if (WIN32) lua PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS" ) endif() + + # NOTE: The DLL for each configuration is stored at the same place, thus overwriting each other. + # This is known, however such behavior is needed for LuaRocks - they always load "lua.dll" else() add_library(lua ${SOURCE}) endif() |