Force CMake to link the runtime statically

This commit is contained in:
Zachary Michaels 2014-08-06 19:41:38 -04:00 committed by Riccardo Spagni
parent ceb6977f82
commit f64a68e7cc
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -73,4 +73,8 @@ add_dependencies(simplewallet version)
set_property(TARGET common crypto cryptonote_core rpc wallet PROPERTY FOLDER "libs") set_property(TARGET common crypto cryptonote_core rpc wallet PROPERTY FOLDER "libs")
set_property(TARGET daemon simplewallet connectivity_tool simpleminer PROPERTY FOLDER "prog") 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") set_property(TARGET daemon PROPERTY OUTPUT_NAME "bitmonerod")