summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-27 11:51:08 +0100
committermadmaxoft <github@xoft.cz>2013-12-27 11:51:08 +0100
commit1cf6502be23ff78e07a96b906738c97805120ca0 (patch)
treea3dad40d5fd0556b17e1b95ce80e67e6f24b6fe2 /CMakeLists.txt
parentAdded proper precompiled headers for MSVC. (diff)
downloadcuberite-1cf6502be23ff78e07a96b906738c97805120ca0.tar
cuberite-1cf6502be23ff78e07a96b906738c97805120ca0.tar.gz
cuberite-1cf6502be23ff78e07a96b906738c97805120ca0.tar.bz2
cuberite-1cf6502be23ff78e07a96b906738c97805120ca0.tar.lz
cuberite-1cf6502be23ff78e07a96b906738c97805120ca0.tar.xz
cuberite-1cf6502be23ff78e07a96b906738c97805120ca0.tar.zst
cuberite-1cf6502be23ff78e07a96b906738c97805120ca0.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 17eee02bb..fa3658583 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -83,7 +83,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions(-DCRYPTOPP_DISABLE_ASM)
endif()
-add_definitions(-DLUA_USE_DLOPEN)
+add_definitions(-DLUA_BUILD_AS_DLL)
+add_definitions(-DXML_STATIC)
add_subdirectory(lib/inifile/)
add_subdirectory(lib/jsoncpp/)
@@ -106,10 +107,13 @@ else()
add_flags("/Wall")
endif()
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE_BAK}")
-set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic")
-set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -rdynamic")
-set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -rdynamic")
-set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_PROFILE} -rdynamic")
+
+if (NOT WIN32)
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic")
+ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -rdynamic")
+ set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -rdynamic")
+ set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_PROFILE} -rdynamic")
+endif()
add_subdirectory (src)