Skip to content

Commit

Permalink
Use CMAKE_CURRENT_LIST_DIR intead of DYNINST_CMAKE_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Dec 22, 2022
1 parent 6762d50 commit 8ad0dc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/DyninstConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ include(DyninstLibIberty)
set(CMAKE_MODULE_PATH ${_DYNINST_module_path_save})
unset(_DYNINST_module_path_save)

get_filename_component(DYNINST_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# -- DO NOT USE -- This is for legacy purposes only
set(DYNINST_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../include")

# Library dependencies include ("${DYNINST_CMAKE_DIR}/DyninstTargets.cmake")
# Library dependencies include ("${CMAKE_CURRENT_LIST_DIR}/DyninstTargets.cmake")
foreach(TARG @ALL_DYNINST_TARGETS@)
include("${DYNINST_CMAKE_DIR}/${TARG}Targets.cmake" OPTIONAL)
include("${CMAKE_CURRENT_LIST_DIR}/${TARG}Targets.cmake" OPTIONAL)
endforeach()

# Other variables Dyninst mutators may depend on
Expand Down

0 comments on commit 8ad0dc9

Please sign in to comment.