aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorZachary Michaels <>2014-08-06 19:41:38 -0400
committerRiccardo Spagni <ric@spagni.net>2014-09-15 22:36:02 +0200
commitf64a68e7cc8ae1587b0f34ac305f5222fe87351d (patch)
tree103de3725e3a1840daf3bd384071b9933ed0f48f /src/CMakeLists.txt
parentmsys2 32/64-bit toolchains (diff)
downloadmonero-f64a68e7cc8ae1587b0f34ac305f5222fe87351d.tar.xz
Force CMake to link the runtime statically
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9673e36e3..28bffea1b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -73,4 +73,8 @@ add_dependencies(simplewallet version)
set_property(TARGET common crypto cryptonote_core rpc wallet PROPERTY FOLDER "libs")
set_property(TARGET daemon simplewallet connectivity_tool simpleminer PROPERTY FOLDER "prog")
+if (STATIC)
+ set_property(TARGET daemon simplewallet connectivity_tool simpleminer PROPERTY LINK_SEARCH_START_STATIC 1)
+ set_property(TARGET daemon simplewallet connectivity_tool simpleminer PROPERTY LINK_SEARCH_END_STATIC 1)
+endif()
set_property(TARGET daemon PROPERTY OUTPUT_NAME "bitmonerod")