mirror of https://gitee.com/bigwinds/arangodb
added NO_SSE42 for windows
This commit is contained in:
parent
5927a22bd8
commit
46c3f1ed4c
|
@ -315,26 +315,30 @@ endif ()
|
||||||
## TARGET ARCHITECTURE
|
## TARGET ARCHITECTURE
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
include(TargetArch)
|
if (WINDOWS)
|
||||||
|
add_definitions("-DNO_SSE42")
|
||||||
target_architecture(CMAKE_TARGET_ARCHITECTURES)
|
|
||||||
list(LENGTH CMAKE_TARGET_ARCHITECTURES cmake_target_arch_len)
|
|
||||||
|
|
||||||
if (NOT "${cmake_target_arch_len}" STREQUAL "1")
|
|
||||||
set(CMAKE_TARGET_ARCHITECTURE_UNIVERSAL TRUE)
|
|
||||||
set(CMAKE_TARGET_ARCHITECTURE_CODE "universal")
|
|
||||||
else ()
|
else ()
|
||||||
set(CMAKE_TARGET_ARCHITECTURE_UNIVERSAL FALSE)
|
include(TargetArch)
|
||||||
set(CMAKE_TARGET_ARCHITECTURE_CODE "${CMAKE_TARGET_ARCHITECTURES}")
|
|
||||||
|
target_architecture(CMAKE_TARGET_ARCHITECTURES)
|
||||||
|
list(LENGTH CMAKE_TARGET_ARCHITECTURES cmake_target_arch_len)
|
||||||
|
|
||||||
|
if (NOT "${cmake_target_arch_len}" STREQUAL "1")
|
||||||
|
set(CMAKE_TARGET_ARCHITECTURE_UNIVERSAL TRUE)
|
||||||
|
set(CMAKE_TARGET_ARCHITECTURE_CODE "universal")
|
||||||
|
else ()
|
||||||
|
set(CMAKE_TARGET_ARCHITECTURE_UNIVERSAL FALSE)
|
||||||
|
set(CMAKE_TARGET_ARCHITECTURE_CODE "${CMAKE_TARGET_ARCHITECTURES}")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
include(VcMacros)
|
||||||
|
|
||||||
|
include(OptimizeForArchitecture)
|
||||||
|
OptimizeForArchitecture()
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Vc_ARCHITECTURE_FLAGS}")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
include(VcMacros)
|
|
||||||
|
|
||||||
include(OptimizeForArchitecture)
|
|
||||||
OptimizeForArchitecture()
|
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Vc_ARCHITECTURE_FLAGS}")
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## BACKTRACE
|
## BACKTRACE
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in New Issue