When you build the Open Programmable Acceleration Engine (OPAE) SDK source code using a development branch and pack it into several local RPM packages, the following error might occur:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
linked by target "fpgaperf_counter" in directory /home/diankun/opae-sdk/external/opae-legacy/tools/fpgaperf_counter
-- Configuring incomplete, errors occurred!
See also "/home/XXX/opae-sdk/build/CMakeFiles/CMakeOutput.log".
See also "/home/XXX/opae-sdk/build/CMakeFiles/CMakeError.log".
To work around this problem, you should add “-DOPAE_LEGACY_TAG=<tag>” and “-DOPAE_SIM_TAG=<tag>” into your compile command.
eg: cmake .. -DCPACK_GENERATOR=RPM -DOPAE_BUILD_LEGACY=ON -DOPAE_BUILD_EXTRA_TOOLS_FPGABIST=ON -DOPAE_BUILD_SIM=ON -DOPAE_LEGACY_TAG=2.0.10-2 -DOPAE_SIM_TAG=2.0.10-2