Blame SOURCES/testsuite-11.0.0-test12.patch

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