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
This commit is contained in:
Admiral H. Curtiss 2024-06-15 22:58:04 +02:00
parent 693607f1d3
commit b8381bfa7c
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

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