Mercurial > nomad > old-fuse
changeset 46:185b01e55687
link everything against libumem/libfakeumem
Not only does libumem provide object caching, it provides some rather nice
debugging features. Therefore, we should link all our binaries against it.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Wed, 01 Jul 2015 18:24:33 -0400 |
parents | ee4a3fc50961 |
children | 8152ce8c597c |
files | src/CMakeLists.txt src/client/CMakeLists.txt src/common/CMakeLists.txt src/objstore/CMakeLists.txt src/objstore/mem/CMakeLists.txt src/server/CMakeLists.txt src/tool/CMakeLists.txt |
diffstat | 7 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/CMakeLists.txt Tue Jun 30 23:32:59 2015 -0400 +++ b/src/CMakeLists.txt Wed Jul 01 18:24:33 2015 -0400 @@ -48,6 +48,13 @@ # UMEM_LIBRARY # +# +# We link all the binaries against these libs +# +set(BASE_LIBS + ${UMEM_LIBRARY} +) + include_directories( common/include objstore/include
--- a/src/client/CMakeLists.txt Tue Jun 30 23:32:59 2015 -0400 +++ b/src/client/CMakeLists.txt Wed Jul 01 18:24:33 2015 -0400 @@ -24,5 +24,9 @@ main.c ) +target_link_libraries(nomad-client + ${BASE_LIBS} +) + install(TARGETS nomad-client DESTINATION bin PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
--- a/src/common/CMakeLists.txt Tue Jun 30 23:32:59 2015 -0400 +++ b/src/common/CMakeLists.txt Wed Jul 01 18:24:33 2015 -0400 @@ -28,6 +28,7 @@ ) target_link_libraries(nomad_common + ${BASE_LIBS} uuid )
--- a/src/objstore/CMakeLists.txt Tue Jun 30 23:32:59 2015 -0400 +++ b/src/objstore/CMakeLists.txt Wed Jul 01 18:24:33 2015 -0400 @@ -24,6 +24,10 @@ objstore.c ) +target_link_libraries(nomad_objstore + ${BASE_LIBS} +) + install(TARGETS nomad_objstore DESTINATION lib PERMISSIONS OWNER_READ GROUP_READ WORLD_READ) install(FILES include/nomad/objstore.h
--- a/src/objstore/mem/CMakeLists.txt Tue Jun 30 23:32:59 2015 -0400 +++ b/src/objstore/mem/CMakeLists.txt Wed Jul 01 18:24:33 2015 -0400 @@ -25,6 +25,7 @@ ) target_link_libraries(nomad_objstore_mem + ${BASE_LIBS} ${AVL_LIBRARY} ${LIST_LIBRARY} common