Skip to content

Commit

Permalink
ci: fix build failing for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 11, 2025
1 parent eb0d10a commit 18d3cfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/SourceFiles.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ set(SOURCE_FILES
src/cpuemu_50.cpp
)

add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${SOURCE_FILES})

if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
target_compile_definitions(${PROJECT_NAME} PRIVATE CPU_AARCH64)
target_sources(${PROJECT_NAME} PRIVATE
Expand All @@ -408,7 +410,6 @@ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
)
endif ()

add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${SOURCE_FILES})
set_target_properties(${PROJECT_NAME} PROPERTIES
MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_EXECUTABLE_NAME "Amiberry-Lite"
Expand Down

0 comments on commit 18d3cfd

Please sign in to comment.