mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-18 15:32:06 +00:00
CMakeLists: Define an OProfile target and use it
Allows us to bring includes and relevant libraries into scope by explicitly declaring linkage against the target as opposed to using a variable. Also removes the dumping of OProfile includes into the top-level directory.
This commit is contained in:
parent
b1bbd8a50e
commit
b31281527a
3 changed files with 15 additions and 4 deletions
|
@ -146,7 +146,7 @@ if(USE_UPNP)
|
|||
endif()
|
||||
|
||||
if(OPROFILE_FOUND)
|
||||
target_link_libraries(common PRIVATE ${OPROFILE_LIBRARIES})
|
||||
target_link_libraries(common PRIVATE OProfile::OProfile)
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue