From b8381bfa7cc6e4f7764bf193a8b824533038c4bc Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 15 Jun 2024 22:58:04 +0200 Subject: [PATCH] CMake: Make the rcheevos dependency public Since rcheevos headers are included in AchievementManager.h, and everyone that depends on Core can include that, we must also pass on the include directory and defines to those dependencies --- Source/Core/Core/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt index 535e687475..54a2e18db5 100644 --- a/Source/Core/Core/CMakeLists.txt +++ b/Source/Core/Core/CMakeLists.txt @@ -779,7 +779,7 @@ if(MSVC) endif() if(USE_RETRO_ACHIEVEMENTS) - target_link_libraries(core PRIVATE rcheevos) - target_compile_definitions(core PRIVATE -DUSE_RETRO_ACHIEVEMENTS) - target_compile_definitions(core PRIVATE -DRC_CLIENT_SUPPORTS_HASH) + target_link_libraries(core PUBLIC rcheevos) + target_compile_definitions(core PUBLIC -DUSE_RETRO_ACHIEVEMENTS) + target_compile_definitions(core PUBLIC -DRC_CLIENT_SUPPORTS_HASH) endif()