mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
building non-fat as well
This commit is contained in:
parent
a32efe9d1f
commit
951b413ad1
@ -129,6 +129,10 @@ include (${CMAKE_MODULE_PATH}/platform.cmake)
|
|||||||
# Detect OS and if Fat Runtime is available
|
# Detect OS and if Fat Runtime is available
|
||||||
include (${CMAKE_MODULE_PATH}/osdetection.cmake)
|
include (${CMAKE_MODULE_PATH}/osdetection.cmake)
|
||||||
|
|
||||||
|
if(BUILD_SSE2_SIMDE)
|
||||||
|
set(SIMDE_BACKEND True)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(SIMDE_BACKEND)
|
if(SIMDE_BACKEND)
|
||||||
include (${CMAKE_MODULE_PATH}/simde.cmake)
|
include (${CMAKE_MODULE_PATH}/simde.cmake)
|
||||||
elseif (ARCH_IA32 OR ARCH_X86_64)
|
elseif (ARCH_IA32 OR ARCH_X86_64)
|
||||||
|
@ -25,10 +25,6 @@ if (NOT FAT_RUNTIME)
|
|||||||
set(ARCH_C_FLAGS "-mavx2")
|
set(ARCH_C_FLAGS "-mavx2")
|
||||||
set(ARCH_CXX_FLAGS "-mavx2")
|
set(ARCH_CXX_FLAGS "-mavx2")
|
||||||
set(X86_ARCH "core-avx2")
|
set(X86_ARCH "core-avx2")
|
||||||
elseif (BUILD_SSE2_SIMDE)
|
|
||||||
set(ARCH_C_FLAGS "-msse2")
|
|
||||||
set(ARCH_CXX_FLAGS "-msse2")
|
|
||||||
set(X86_ARCH "x86-64")
|
|
||||||
else()
|
else()
|
||||||
set(ARCH_C_FLAGS "-msse4.2")
|
set(ARCH_C_FLAGS "-msse4.2")
|
||||||
set(ARCH_CXX_FLAGS "-msse4.2")
|
set(ARCH_CXX_FLAGS "-msse4.2")
|
||||||
|
@ -24,6 +24,13 @@ if (SIMDE_SSE42_H_FOUND)
|
|||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVS_SIMDE_NATIVE -DSIMDE_ENABLE_OPENMP -fopenmp-simd")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVS_SIMDE_NATIVE -DSIMDE_ENABLE_OPENMP -fopenmp-simd")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVS_SIMDE_NATIVE -DSIMDE_ENABLE_OPENMP -fopenmp-simd")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVS_SIMDE_NATIVE -DSIMDE_ENABLE_OPENMP -fopenmp-simd")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (BUILD_SSE2_SIMDE)
|
||||||
|
set(ARCH_C_FLAGS "-msse2")
|
||||||
|
set(ARCH_CXX_FLAGS "-msse2")
|
||||||
|
set(X86_ARCH "x86-64")
|
||||||
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "SIMDe backend requested but SIMDe is not available on the system")
|
message(FATAL_ERROR "SIMDe backend requested but SIMDe is not available on the system")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user