Skip to content

Commit

Permalink
Explicitly link Symtab against Boost libs
Browse files Browse the repository at this point in the history
  • Loading branch information
wrwilliams committed Oct 26, 2016
1 parent 1ce4027 commit c48d857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ if (IBERTY_FOUND)
set(DEPS ${IBERTY_LIBRARIES})
endif()

list(APPEND DEPS ${Boost_LIBRARIES})

dyninst_library(common ${DEPS})
if(PLATFORM MATCHES nt OR PLATFORM MATCHES windows)
target_link_private_libraries(common Psapi WS2_32 dbghelp)
endif()
target_link_private_libraries(${Boost_LIBRARIES})


IF (USE_COTIRE)
Expand Down
5 changes: 3 additions & 2 deletions symtabAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,16 @@ ADD_DEFINITIONS(-DSYMTAB_LIB)
set (DEPS common)

if(UNIX)
set (DEPS ${DEPS}
list (APPEND DEPS
dynElf ${LIBELF_LIBRARIES}
dynDwarf ${LIBDWARF_LIBRARIES}
)
else()
set (DEPS ${DEPS} dbghelp)
list (APPEND DEPS dbghelp)
endif()

dyninst_library(symtabAPI ${DEPS})
target_link_private_libraries(${Boost_LIBRARIES})

if (USE_COTIRE)
cotire(symtabAPI)
Expand Down

0 comments on commit c48d857

Please sign in to comment.