There is still a segmenttion fault issue with the AVX code, disable it until this is sorted out

This commit is contained in:
Erik Hofman
2017-01-26 14:46:36 +01:00
parent 6a2d86c526
commit edec5bbc01
4 changed files with 32 additions and 29 deletions
+12 -2
View File
@@ -9,7 +9,16 @@ if(COMMAND cmake_policy)
endif()
endif()
message("CMAKE Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS "CMAKE Build type: ${CMAKE_BUILD_TYPE}")
# Set a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Debug' as none was specified.")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
"MinSizeRel" "RelWithDebInfo")
endif()
include (CheckFunctionExists)
include (CheckIncludeFile)
@@ -366,7 +375,8 @@ if (CLANG)
if(ENABLE_SIMD)
if (X86 OR X86_64)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse3 -mfpmath=sse")
set(CMAKE_C_FLAGS_RELEASE "-O3 -msse2 -mfpmath=sse")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -msse2 -mfpmath=sse")
endif()
endif()
endif()