Skip to content

Commit eb77790

Browse files
committed
cmake: move check for FLB_USE_SIMDUTF for FLB_UNICODE_ENCODER into main if.
Signed-off-by: Phillip Whelan <[email protected]>
1 parent 3ac1955 commit eb77790

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,11 +599,10 @@ if(FLB_UTF8_ENCODER)
599599
endif()
600600

601601
# simdutf
602-
if (FLB_UNICODE_ENCODER AND NOT FLB_USE_SIMDUTF)
603-
message( FATAL_ERROR "FLB_UNICODE_ENCODER requires FLB_USE_SIMDUTF")
604-
endif()
605-
606602
if(FLB_UNICODE_ENCODER AND FLB_USE_SIMDUTF)
603+
if (NOT FLB_USE_SIMDUTF)
604+
message(FATAL_ERROR "FLB_UNICODE_ENCODER requires FLB_USE_SIMDUTF")
605+
endif()
607606
enable_language(CXX)
608607
set (CMAKE_CXX_STANDARD 11)
609608
add_subdirectory(${FLB_PATH_LIB_SIMDUTF} EXCLUDE_FROM_ALL)

0 commit comments

Comments
 (0)