diff options
author | Zachary Michaels <> | 2014-08-06 19:41:38 -0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-15 22:36:02 +0200 |
commit | f64a68e7cc8ae1587b0f34ac305f5222fe87351d (patch) | |
tree | 103de3725e3a1840daf3bd384071b9933ed0f48f /src | |
parent | msys2 32/64-bit toolchains (diff) | |
download | monero-f64a68e7cc8ae1587b0f34ac305f5222fe87351d.tar.xz |
Force CMake to link the runtime statically
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 4 |
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") |