diff --git a/deps/gbabuildcore/cmake/modules/GBA.cmake b/deps/gbabuildcore/cmake/modules/GBA.cmake index abb11d5e..3c28a622 100644 --- a/deps/gbabuildcore/cmake/modules/GBA.cmake +++ b/deps/gbabuildcore/cmake/modules/GBA.cmake @@ -24,8 +24,8 @@ add_definitions(-DARM7) include(FindPackageHandleStandardArgs) macro(OBJCOPY_FILE EXE_NAME) - set(FO ${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}.bin) - set(FI ${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}) + set(FO ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${EXE_NAME}.bin) + set(FI ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${EXE_NAME}) message(STATUS ${FO}) # run objcopy