Cmake changes
This commit is contained in:
@@ -6,21 +6,23 @@ include(cmake/CPUFeatures)
|
||||
OPTION(BUILD_SHARED_LIBS "Build also shared library." ON)
|
||||
|
||||
if(CPU_AVX_AVAILABLE)
|
||||
OPTION(USE_AVX "If AVX instruction set should be used." ON)
|
||||
SET(USE_AVX ON CACHE BOOL "")
|
||||
endif(CPU_AVX_AVAILABLE)
|
||||
|
||||
if(CPU_SSE3_AVAILABLE)
|
||||
|
||||
OPTION(USE_SSE "If SSE instruction set should be used." ON)
|
||||
SET(USE_SSE ON CACHE BOOL "")
|
||||
|
||||
if(CPU_SSE4.2_AVAILABLE)
|
||||
OPTION(USE_SSE2 "If SSE 2 instruction set should be used." OFF)
|
||||
else()
|
||||
OPTION(USE_SSE2 "If SSE 2 instruction set should be used." ON)
|
||||
SET(USE_SSE2 OFF CACHE BOOL "")
|
||||
endif(CPU_SSE4.2_AVAILABLE)
|
||||
|
||||
endif(CPU_SSE3_AVAILABLE)
|
||||
|
||||
|
||||
OPTION(USE_AVX "If AVX instruction set should be used." OFF)
|
||||
OPTION(USE_SSE "If SSE instruction set should be used." OFF)
|
||||
OPTION(USE_SSE2 "If SSE 2 instruction set should be used." ON)
|
||||
|
||||
OPTION(ENABLE_TESTS "enables tests" ON)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Weffc++ -Wshadow -Wstrict-aliasing -ansi -Woverloaded-virtual -Wdelete-non-virtual-dtor -Wno-unused-function")
|
||||
|
||||
Reference in New Issue
Block a user