Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
337eafb2e0
commit
1afeb197fa
1 changed files with 4 additions and 4 deletions
|
@ -40,19 +40,19 @@ if (CMAKE_OSX_ARCHITECTURES)
|
|||
return()
|
||||
endif()
|
||||
|
||||
function(detect_architecture symbol arch)
|
||||
macro(detect_architecture symbol arch)
|
||||
if (NOT DEFINED ARCHITECTURE)
|
||||
set(CMAKE_REQUIRED_QUIET 1)
|
||||
check_symbol_exists("${symbol}" "" ARCHITECTURE_${arch})
|
||||
unset(CMAKE_REQUIRED_QUIET)
|
||||
|
||||
if (ARCHITECTURE_${arch})
|
||||
set(ARCHITECTURE "${arch}" PARENT_SCOPE)
|
||||
set(ARCHITECTURE_${arch} 1 PARENT_SCOPE)
|
||||
set(ARCHITECTURE "${arch}")
|
||||
set(ARCHITECTURE_${arch} 1)
|
||||
add_definitions(-DARCHITECTURE_${arch}=1)
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
endmacro()
|
||||
|
||||
detect_architecture("__ARM64__" arm64)
|
||||
detect_architecture("__aarch64__" arm64)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue