diff options
author | redfish <redfish@galactica.pw> | 2016-09-17 14:03:51 -0400 |
---|---|---|
committer | redfish <redfish@galactica.pw> | 2016-09-18 02:56:26 -0400 |
commit | 06bb6923c3068637af729dd7e7500ce1a6c888b9 (patch) | |
tree | 3255ea59b54c15a71ab4e807b460476723af195c /src | |
parent | cmake: transitive deps and remove deprecated LINK_* (diff) | |
download | monero-06bb6923c3068637af729dd7e7500ce1a6c888b9.tar.xz |
cmake: support BUILD_SHARED_LIBS built-in option
Support building internal libraries as shared. This reduces
development time by eliminating the need to re-link all
binaries every time non-interface code in the library changes.
Instead, can hack on libxyz, then `make libxyz`, and re-run
monerod.
By default BUILD_SHARED_LIBS is OFF in release build type,
and ON in debug build type, but can be overriden with -D.
Diffstat (limited to '')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a2e650928..31694cf81 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -88,7 +88,7 @@ function (bitmonero_add_library name) # libwallet, which combines multiple components. set(objlib obj_${name}) add_library(${objlib} OBJECT ${ARGN}) - add_library("${name}" STATIC $<TARGET_OBJECTS:${objlib}>) + add_library("${name}" $<TARGET_OBJECTS:${objlib}>) set_property(TARGET "${name}" PROPERTY FOLDER "libs") |