Skip to content

Commit 3ac1955

Browse files
committed
cmake: fail if FLB_UNICODE_ENCODER is enabled but FLB_USE_SIMDUTF is disabled.
Signed-off-by: Phillip Whelan <[email protected]>
1 parent fff87da commit 3ac1955

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +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+
602606
if(FLB_UNICODE_ENCODER AND FLB_USE_SIMDUTF)
603607
enable_language(CXX)
604608
set (CMAKE_CXX_STANDARD 11)

0 commit comments

Comments
 (0)