mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-29 06:40:53 +01:00
b99d1a0a20
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.
20 lines
607 B
CMake
20 lines
607 B
CMake
# - Try to find OProfile
|
|
# Once done this will define
|
|
# OPROFILE_FOUND - System has OProfile
|
|
# OPROFILE_INCLUDE_DIRS - The OProfile include directories
|
|
# OPROFILE_LIBRARIES - The libraries needed to use OProfile
|
|
|
|
find_path(OPROFILE_INCLUDE_DIR opagent.h)
|
|
|
|
find_library(OPROFILE_LIBRARY opagent
|
|
PATH_SUFFIXES oprofile)
|
|
|
|
set(OPROFILE_INCLUDE_DIRS ${OPROFILE_INCLUDE_DIR})
|
|
set(OPROFILE_LIBRARIES ${OPROFILE_LIBRARY})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(OProfile DEFAULT_MSG
|
|
OPROFILE_LIBRARY OPROFILE_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(OPROFILE_INCLUDE_DIR OPROFILE_LIBRARY)
|