Skip to content

Commit c9e98da

Browse files
committed
build: Do not install simdutf related header when turning off
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 9035bb7 commit c9e98da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ install(FILES ${headers}
2828
COMPONENT headers
2929
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
3030

31-
file(GLOB headers "fluent-bit/simdutf/*.h")
32-
install(FILES ${headers}
31+
# simdutf
32+
if(FLB_UNICODE_ENCODER)
33+
file(GLOB headers "fluent-bit/simdutf/*.h")
34+
install(FILES ${headers}
3335
DESTINATION ${FLB_INSTALL_INCLUDEDIR}/fluent-bit/simdutf/
3436
COMPONENT headers
3537
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
38+
endif()
3639

3740
install(FILES "../lib/monkey/include/monkey/mk_core.h"
3841
DESTINATION ${FLB_INSTALL_INCLUDEDIR}/monkey/

0 commit comments

Comments
 (0)