From b31281527a6d3b156b742d03917d82a61cbd99ad Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 13 Apr 2018 19:32:11 -0400 Subject: 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. --- Source/Core/Common/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index 4ef3af3ac5..15c79c3d3b 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -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) -- cgit v1.2.3