I've recently encountered this myself and have simply been behind on pushing a fix. I'm not entirely sure how things were working correctly before, but the following should work:

diff --git a/cmake/DyninstConfig.cmake.in b/cmake/DyninstConfig.cmake.in
index 2b93557..7578e46 100644
--- a/cmake/DyninstConfig.cmake.in
+++ b/cmake/DyninstConfig.cmake.in
@@ -16,7 +16,7 @@ foreach(TARG @ALL_DYNINST_TARGETS@)
   include ("${DYNINST_CMAKE_DIR}/${TARG}Targets.cmake" OPTIONAL)
 endforeach()

-set (DYNINST_LIBRARIES "dyninst")
+set (DYNINST_LIBRARIES "dyninstAPI")

 # Other variables Dyninst mutators may depend on
 set (DYNINST_PLATFORM "@PLATFORM@")
@@ -35,3 +35,10 @@ if(DYNINST_FIND_COMPONENTS)
     endif()
   endforeach()
 endif()
+
+if(TARGET dyninstAPI)
+  set(Dyninst_FOUND 1)
+else()
+  set(Dyninst_FOUND 0)
+endif()
+

I'll be testing and merging a few things, including this, today or tomorrow I hope in preparation for 9.0.4.

--bw


On 09/24/2015 12:58 PM, Knapp, Rashawn L wrote:

Hello,

I built Dyninst 9.0.3 last evening, and it seems to have built successfully. I was building the test suite this morning and encountered a message from ccmake, stating that ““Dyninst” is considered to be NOT FOUND.” The full message text is below:

CMake Error at CMakeLists.txt:28 (find_package):

   Found package configuration file:

/nfs/fx/proj/<hidden paths>/Dyninst/Dyninst-9.0.3/intel/lib/cmake/Dyninst/DyninstConfig.cmake

but it set Dyninst_FOUND to FALSE so package "Dyninst" is considered to be

   NOT FOUND. Reason given by package:

The following imported targets are referenced, but are missing: dyninstAPI

The line at CMakeLists.txt:28 is below

28 find_package (Dyninst REQUIRED COMPONENTS common

29 OPTIONAL_COMPONENTS symtabAPI dyninstAPI instructionAPI proccontrol)

I am not sure where to look to fix this or what I configured incorrectly. Any pointers will be appreciated.

Thank you

Rashawn Knapp

Software Development Engineer, Intel Corporation

Systems Engineering, Architecture & Runtimes



_______________________________________________
Dyninst-api mailing list
Dyninst-api@cs.wisc.edu
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

_______________________________________________
Dyninst-api mailing list
Dyninst-api@cs.wisc.edu
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

Reply via email to