From 695230dedb0dd48ee8b61a2dcecb9aaa201a6db8 Mon Sep 17 00:00:00 2001 From: Joona Heimonen <99501993+joohei@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:58:31 +0300 Subject: [PATCH] Fix cores not copying to retro/cores in some cases (openai/retro#260) (#46) --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 932a1a082..47380e093 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,18 +189,17 @@ function(add_core platform core_name) DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/retro/cores/${core_name}-version") unset(core_ldflags) add_custom_command( - OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/retro/cores/${core_name}.json" + OUTPUT "${PYLIB_DIRECTORY}/retro/cores/${core_name}.json" COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/cores/${platform}.json" - "${CMAKE_CURRENT_SOURCE_DIR}/retro/cores/${core_name}.json" + "${PYLIB_DIRECTORY}/retro/cores/${core_name}.json" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/retro/cores/${core_name}-version") add_custom_target( ${platform} ALL DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/retro/cores/${core_name}-version" - "${CMAKE_CURRENT_SOURCE_DIR}/retro/cores/${core_name}.json" - "${TARGET_PATH}") + "${PYLIB_DIRECTORY}/retro/cores/${core_name}.json" "${TARGET_PATH}") list(APPEND CORE_TARGETS "${platform}") set(CORE_TARGETS "${CORE_TARGETS}"