Skip to content

Commit fa6fd4a

Browse files
committed
Fix spelling and allow glaze grouping in Cmake
1 parent b85f5d6 commit fa6fd4a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ if (glaze_DEVELOPER_MODE)
5050
include(cmake/dev-mode.cmake)
5151
endif()
5252

53-
option(GLAZE_DISABLE_VECTOR_CODE_WHEN_SUPPORTED
54-
"disable vector optimised code even when targets supports it" OFF)
55-
if(GLAZE_DISABLE_VECTOR_CODE_WHEN_SUPPORTED)
56-
target_compile_definitions(glaze_glaze INTERFACE GLZ_DISBALE_VECTOR_CODE)
53+
option(glaze_DISABLE_AVX2_WHEN_SUPPORTED
54+
"disable AVX2 optimized code even when targets supports it" OFF)
55+
if(glaze_DISABLE_AVX2_WHEN_SUPPORTED)
56+
target_compile_definitions(glaze_glaze INTERFACE GLZ_DISABLE_AVX2)
5757
endif()
5858

5959
option(glaze_BUILD_EXAMPLES "Build GLAZE examples" OFF)

include/glaze/json/write.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <ostream>
99
#include <variant>
1010

11-
#if !defined(GLZ_DISBALE_VECTOR_CODE) && (defined(__x86_64__) || defined(_M_X64))
11+
#if !defined(GLZ_DISABLE_AVX2) && (defined(__x86_64__) || defined(_M_X64))
1212
#if defined(_MSC_VER)
1313
#include <intrin.h>
1414
#else

0 commit comments

Comments
 (0)