We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c919a2 commit 2f1cae8Copy full SHA for 2f1cae8
CMake/Common.cmake
@@ -9,12 +9,17 @@ set(CMAKE_RELWITHDEBINFO_POSTFIX "_rd")
9
set(CMAKE_MINSIZEREL_POSTFIX "_ms")
10
11
include(CMakeDependentOption)
12
-include(avx)
+
13
14
OPTION(USE_DOUBLE_PRECISION "Use double precision" OFF)
15
if (USE_DOUBLE_PRECISION)
16
add_definitions( -DUSE_DOUBLE)
17
-else()
+ message("AVX is only supported for single precision.")
18
+endif (USE_DOUBLE_PRECISION)
19
20
+cmake_dependent_option(USE_AVX "Use AVX" ON "NOT USE_DOUBLE_PRECISION" OFF)
21
+if (USE_AVX)
22
+ include(avx)
23
set_avx_flags()
24
if (FOUND_AVX2)
25
message(STATUS "Using AVX2")
0 commit comments