meta: update rosetta support
This commit is contained in:
@@ -19,7 +19,7 @@ function(get_platform_details)
|
||||
elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
||||
set(system_name "win32")
|
||||
else ()
|
||||
message(FATAL_ERROR "Unsupported platform: ${CMAKE_SYSTEM_NAME}")
|
||||
string(TOLOWER "${CMAKE_SYSTEM_NAME}" system_name)
|
||||
endif ()
|
||||
|
||||
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
|
||||
@@ -27,7 +27,7 @@ function(get_platform_details)
|
||||
elseif ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64")
|
||||
set(system_arch "aarch64")
|
||||
else ()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}")
|
||||
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" system_arch)
|
||||
endif ()
|
||||
|
||||
set(${arg_SYSTEM} ${system_name} PARENT_SCOPE)
|
||||
|
||||
+12
-10
@@ -47,16 +47,18 @@ function(add_fx_assembly)
|
||||
target_compile_definitions(${assembly_target_name} PRIVATE ${def})
|
||||
endforeach (def)
|
||||
|
||||
foreach (ns ${arg_NAMESPACES})
|
||||
file(GLOB test_sources ${fx_source_root}/${ns}/test/*.c)
|
||||
foreach (test_file ${test_sources})
|
||||
get_filename_component(test_name ${test_file} NAME_WE)
|
||||
set(test_name ${ns}-${test_name})
|
||||
string(REPLACE "." "-" test_name ${test_name})
|
||||
add_executable(${test_name} ${test_file})
|
||||
target_link_libraries(${test_name} ${assembly_target_name})
|
||||
endforeach (test_file)
|
||||
endforeach (ns)
|
||||
if (fx_enable_tests)
|
||||
foreach (ns ${arg_NAMESPACES})
|
||||
file(GLOB test_sources ${fx_source_root}/${ns}/test/*.c)
|
||||
foreach (test_file ${test_sources})
|
||||
get_filename_component(test_name ${test_file} NAME_WE)
|
||||
set(test_name ${ns}-${test_name})
|
||||
string(REPLACE "." "-" test_name ${test_name})
|
||||
add_executable(${test_name} ${test_file})
|
||||
target_link_libraries(${test_name} ${assembly_target_name})
|
||||
endforeach (test_file)
|
||||
endforeach (ns)
|
||||
endif ()
|
||||
|
||||
set_target_properties(${assembly_target_name} PROPERTIES
|
||||
FOLDER "${assembly_name}")
|
||||
|
||||
Reference in New Issue
Block a user