Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test and Enable OMNITRACE_BUILD_DYNINST, if needed #380

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions cmake/Packages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,23 @@ target_link_libraries(omnitrace-elfutils INTERFACE ${ElfUtils_LIBRARIES})
#
# ----------------------------------------------------------------------------------------#

if(NOT OMNITRACE_BUILD_DYNINST)
find_package(Dyninst QUIET
COMPONENTS dyninstAPI parseAPI instructionAPI symtabAPI)
if (NOT Dyninst_FOUND)
# Build DYNINST,TBB,BOOST,ELFUTILS,LIBIBERTY
message(WARNING
"Dyninst not found. Building Dyninst and dependencies from source.")

set(OMNITRACE_BUILD_DYNINST ON)
set(DYNINST_BUILD_TBB ON)
set(DYNINST_BUILD_BOOST ON)
set(DYNINST_BUILD_ELFUTILS ON)
set(DYNINST_BUILD_LIBIBERTY ON)

endif()
endif()

if(OMNITRACE_BUILD_DYNINST)
omnitrace_checkout_git_submodule(
RELATIVE_PATH external/dyninst
Expand Down
Loading