mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
separate ARCH_FLAG logic
This commit is contained in:
parent
3beda7e5e0
commit
6332cb91f5
@ -121,20 +121,22 @@ include (${CMAKE_MODULE_PATH}/osdetection.cmake)
|
||||
|
||||
if(SIMDE_BACKEND)
|
||||
include (${CMAKE_MODULE_PATH}/simde.cmake)
|
||||
set(ARCH_FLAG march)
|
||||
elseif (ARCH_IA32 OR ARCH_X86_64)
|
||||
include (${CMAKE_MODULE_PATH}/cflags-x86.cmake)
|
||||
set(ARCH_FLAG march)
|
||||
elseif (ARCH_ARM32 OR ARCH_AARCH64)
|
||||
include (${CMAKE_MODULE_PATH}/cflags-arm.cmake)
|
||||
set(ARCH_FLAG march)
|
||||
elseif (ARCH_PPC64EL)
|
||||
include (${CMAKE_MODULE_PATH}/cflags-ppc64le.cmake)
|
||||
set(ARCH_FLAG mcpu)
|
||||
else()
|
||||
else ()
|
||||
message(FATAL_ERROR "Unsupported platform")
|
||||
endif ()
|
||||
|
||||
if (ARCH_PPC64EL)
|
||||
set(ARCH_FLAG mcpu)
|
||||
else ()
|
||||
set(ARCH_FLAG march)
|
||||
endif ()
|
||||
|
||||
# Detect Native arch flags if requested
|
||||
include (${CMAKE_MODULE_PATH}/archdetect.cmake)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user