@@ -83,6 +83,12 @@ option(
8383 ON
8484)
8585
86+ option (
87+ CLP_BUILD_CLP_S_TIMESTAMP_PARSER
88+ "Build clp_s::timestamp_parser"
89+ ON
90+ )
91+
8692option (
8793 CLP_BUILD_CLP_S_TIMESTAMPPATTERN
8894 "Build clp_s::timestamp_pattern."
@@ -160,6 +166,7 @@ function(validate_clp_tests_dependencies)
160166 CLP_BUILD_CLP_S_SEARCH_KQL
161167 CLP_BUILD_CLP_S_SEARCH_SQL
162168 CLP_BUILD_CLP_S_TIMESTAMPPATTERN
169+ CLP_BUILD_CLP_S_TIMESTAMP_PARSER
163170 )
164171endfunction ()
165172
@@ -360,6 +367,19 @@ function(set_clp_s_search_sql_dependencies)
360367 )
361368endfunction ()
362369
370+ function (validate_clp_s_timestamp_parser_dependencies)
371+ validate_clp_dependencies_for_target(CLP_BUILD_CLP_S_TIMESTAMP_PARSER
372+ CLP_BUILD_CLP_STRING_UTILS
373+ )
374+ endfunction ()
375+
376+ function (set_clp_s_timestamp_parser_dependencies)
377+ set_clp_need_flags(
378+ CLP_NEED_DATE
379+ CLP_NEED_YSTDLIB
380+ )
381+ endfunction ()
382+
363383function (validate_clp_s_timestamppattern_dependencies)
364384 validate_clp_dependencies_for_target(CLP_BUILD_CLP_S_TIMESTAMPPATTERN
365385 CLP_BUILD_CLP_STRING_UTILS
@@ -444,6 +464,11 @@ function(validate_and_setup_all_clp_dependency_flags)
444464 set_clp_s_search_sql_dependencies()
445465 endif ()
446466
467+ if (CLP_BUILD_CLP_S_TIMESTAMP_PARSER)
468+ validate_clp_s_timestamp_parser_dependencies()
469+ set_clp_s_timestamp_parser_dependencies()
470+ endif ()
471+
447472 if (CLP_BUILD_CLP_S_TIMESTAMPPATTERN)
448473 validate_clp_s_timestamppattern_dependencies()
449474 set_clp_s_timestamppattern_dependencies()
0 commit comments