summaryrefslogtreecommitdiff
path: root/library/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-03-09 19:46:21 +0400
committerAlexander Gavrilov2012-03-09 19:46:21 +0400
commitedf77cf270e3ff7c4a08cd85fcaf537b254f6273 (patch)
treeea12836902f56ce46460377eb7aa5f5b35f4f151 /library/CMakeLists.txt
parent9b071097de73dc19e5f3d5be31134810bad3e6f7 (diff)
downloaddfhack-edf77cf270e3ff7c4a08cd85fcaf537b254f6273.tar.gz
dfhack-edf77cf270e3ff7c4a08cd85fcaf537b254f6273.tar.bz2
dfhack-edf77cf270e3ff7c4a08cd85fcaf537b254f6273.tar.xz
Link protobuf to dfhack core as a shared library.
- Change protobuf libraries to build as DLLs. - Move some stream features to the lite library. - Install the lite library and use it from dfhack. Note that: - A couple of protobuf headers had to be tweaked. - The lite library is used because the full one is absolutely incompatible with reloading plugins. - Shutting down protobuf also can't be allowed.
Diffstat (limited to 'library/CMakeLists.txt')
-rw-r--r--library/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 94704beb..ca4c9d47 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -196,7 +196,7 @@ endif()
#effectively disables debug builds...
SET_TARGET_PROPERTIES(dfhack PROPERTIES DEBUG_POSTFIX "-debug" )
-TARGET_LINK_LIBRARIES(dfhack ${PROJECT_LIBS})
+TARGET_LINK_LIBRARIES(dfhack protobuf-lite ${PROJECT_LIBS})
IF(UNIX)
# On linux, copy our version of the df launch script which sets LD_PRELOAD