Skip to content

Commit

Permalink
core: set target_link_libraries for ndmp
Browse files Browse the repository at this point in the history
Both director and sd need their static object libraries linked to
bareosndmp so the include directory is propagated correctly.

(cherry picked from commit 6f992e3)
  • Loading branch information
arogge committed Oct 17, 2019
1 parent ea9bc96 commit 975d673
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/dird/CMakeLists.txt
Expand Up @@ -66,6 +66,7 @@ set(DIRD_RESTYPES catalog client console counter director fileset job jobdefs me

#dird_objects is also used as library for unittests
add_library(dird_objects STATIC ${DIRD_OBJECTS_SRCS})
target_link_libraries(dird_objects ${NDMP_LIBS})

add_executable(bareos-dir ${DIRDSRCS})

Expand Down
1 change: 1 addition & 0 deletions core/src/stored/CMakeLists.txt
Expand Up @@ -175,6 +175,7 @@ IF(HAVE_DARWIN_OS)
ENDIF()

add_library(stored_objects STATIC ${SDSRCS})
target_link_libraries(stored_objects ${NDMP_LIBS})

add_executable(bareos-sd stored.cc)

Expand Down

0 comments on commit 975d673

Please sign in to comment.