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:
Lioncash
2018-04-13 19:32:11 -04:00
parent b1bbd8a50e
commit b31281527a
3 changed files with 15 additions and 4 deletions

View File

@ -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)