Skip to content

Commit

Permalink
Fix cores not copying to retro/cores in some cases (openai/retro#260) (
Browse files Browse the repository at this point in the history
  • Loading branch information
joohei authored Jul 24, 2023
1 parent 5e33fb0 commit 695230d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 695230d

Please sign in to comment.