Blame SOURCES/testsuite-11.0.0-test12.patch

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