Skip to content

Commit

Permalink
Use PACKAGE_INIT in Config.cmake.in
Browse files Browse the repository at this point in the history
Also use it for DYNINST_INCLUDE_DIR
  • Loading branch information
hainest committed Dec 22, 2022
1 parent cee18bb commit 9c3cc82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/DyninstConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ include(DyninstLibIberty)
set(CMAKE_MODULE_PATH ${_DYNINST_module_path_save})
unset(_DYNINST_module_path_save)

# -- DO NOT USE -- This is for legacy purposes only
set(DYNINST_INCLUDE_DIR @INSTALL_INCLUDE_DIR@)
@PACKAGE_INIT@

# Library dependencies include ("${CMAKE_CURRENT_LIST_DIR}/DyninstTargets.cmake")
foreach(TARG @ALL_DYNINST_TARGETS@)
Expand Down Expand Up @@ -47,3 +46,6 @@ if(TARGET dyninstAPI)
else()
set(Dyninst_FOUND 0)
endif()

# -- DO NOT USE -- This is for legacy purposes only
set_and_check(DYNINST_INCLUDE_DIR @INSTALL_INCLUDE_DIR@)

0 comments on commit 9c3cc82

Please sign in to comment.