summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-24 10:24:24 +0100
committermadmaxoft <github@xoft.cz>2014-01-24 10:24:24 +0100
commite75f979e01b34fbd1a2993be9fd4aa7211da26cf (patch)
tree970a6f325d980a24d42e7ff512b404f79dc630d8
parentFixed a few compile-time and runtime warnings in ScoreboardSerializer. (diff)
downloadcuberite-e75f979e01b34fbd1a2993be9fd4aa7211da26cf.tar
cuberite-e75f979e01b34fbd1a2993be9fd4aa7211da26cf.tar.gz
cuberite-e75f979e01b34fbd1a2993be9fd4aa7211da26cf.tar.bz2
cuberite-e75f979e01b34fbd1a2993be9fd4aa7211da26cf.tar.lz
cuberite-e75f979e01b34fbd1a2993be9fd4aa7211da26cf.tar.xz
cuberite-e75f979e01b34fbd1a2993be9fd4aa7211da26cf.tar.zst
cuberite-e75f979e01b34fbd1a2993be9fd4aa7211da26cf.zip
-rw-r--r--Install/Zip2008_PDBs.list8
-rw-r--r--src/CMakeLists.txt7
2 files changed, 8 insertions, 7 deletions
diff --git a/Install/Zip2008_PDBs.list b/Install/Zip2008_PDBs.list
index b9c822c38..608b0185b 100644
--- a/Install/Zip2008_PDBs.list
+++ b/Install/Zip2008_PDBs.list
@@ -1,8 +1,2 @@
MCServer\*.pdb
-VC2008\Release\*.pdb
-VC2008\Release\JsonCpp\*.pdb
-VC2008\Release\Lua\*.pdb
-VC2008\Release\ToLua\*.pdb
-VC2008\Release\webserver\*.pdb
-VC2008\Release\zlib\*.pdb
-src\Bindings.* \ No newline at end of file
+src\Bindings\Bindings.* \ No newline at end of file
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 51182d3bc..a8cc0530d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -134,6 +134,13 @@ else ()
"StackWalker.cpp LeakFinder.h" PROPERTIES COMPILE_FLAGS "/Yc\"Globals.h\""
)
list(APPEND SOURCE "Resources/MCServer.rc")
+
+ # Make MSVC generate the PDB files even for the release build:
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Zi")
+ set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG")
+ set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG")
+ set(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} /DEBUG")
endif()
set(EXECUTABLE MCServer)