Blame SOURCES/testsuite-11.0.0-test12.patch

076a09
--- dyninst-11.0.0/testsuite-11.0.0/CMakeLists.txt
076a09
+++ dyninst-11.0.0/testsuite-11.0.0/CMakeLists.txt
076a09
@@ -341,5 +341,10 @@
076a09
   add_library(Test12 SHARED src/dyninst/libTest12.c)
076a09
   add_library(dyninstAPI_RT SHARED IMPORTED)
076a09
-  set_target_properties(dyninstAPI_RT PROPERTIES IMPORTED_LOCATION "${Dyninst_DIR}/../../libdyninstAPI_RT.so")
076a09
+  set(_path_suffixes dyninst)
076a09
+  find_library(dyninstAPI_RT_LIBRARY
076a09
+             NAMES libdyninstAPI_RT.so
076a09
+             PATHS ${Dyninst_DIR}/../..
076a09
+             PATH_SUFFIXES ${_path_suffixes})
076a09
+  set_target_properties(dyninstAPI_RT PROPERTIES IMPORTED_LOCATION ${dyninstAPI_RT_LIBRARY})
076a09
   target_link_libraries(Test12 dyninstAPI_RT)
076a09
   install(TARGETS Test12