Fix OProfile discovery and drop bfd dependency

Adds a cmake module to correctly discover OProfile and adjusts the
corresponding CMakeLists to make use of it. Additionally removes
linking against the bfd library when compiling with OProfile because
Dolphin does not use it.
This commit is contained in:
Christian Widmer
2015-10-06 17:28:29 +02:00
parent c4fe2cd287
commit b99d1a0a20
3 changed files with 25 additions and 6 deletions

View File

@ -265,7 +265,7 @@ if(PORTAUDIO_FOUND)
endif(PORTAUDIO_FOUND)
if(OPROFILE_FOUND)
set(LIBS ${LIBS} opagent bfd)
set(LIBS ${LIBS} ${OPROFILE_LIBRARIES})
endif(OPROFILE_FOUND)
if(GDBSTUB)