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:
+5
-5
@@ -512,13 +512,13 @@ if(NOT ANDROID)
|
||||
endif(PORTAUDIO)
|
||||
|
||||
if(OPROFILING)
|
||||
check_lib(OPROFILE "(no .pc for opagent)" opagent opagent.h)
|
||||
check_lib(BFD "(no .pc for bfd)" bfd bfd.h)
|
||||
if(OPROFILE_FOUND AND BFD_FOUND)
|
||||
message("oprofile found, enabling profiling support")
|
||||
include(FindOProfile)
|
||||
if(OPROFILE_FOUND)
|
||||
message("OProfile found, enabling profiling support")
|
||||
add_definitions(-DUSE_OPROFILE=1)
|
||||
include_directories(${OPROFILE_INCLUDE_DIRS})
|
||||
else()
|
||||
message(FATAL_ERROR "oprofile or bfd not found. Can't build profiling support.")
|
||||
message(FATAL_ERROR "OProfile not found. Can't build profiling support.")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user