ATCH_VERSION "0")
        elseif(${ICU_PRIVATE_VAR_NS}_FULL_VERSION MATCHES "^([0-9]+)\\.([0-9]+)\\.([0-9]+)")
            set(${ICU_PUBLIC_VAR_NS}_MAJOR_VERSION "${CMAKE_MATCH_1}")
            set(${ICU_PUBLIC_VAR_NS}_MINOR_VERSION "${CMAKE_MATCH_2}")
            set(${ICU_PUBLIC_VAR_NS}_PATCH_VERSION "${CMAKE_MATCH_3}")
        endif()
    else()
        message(FATAL_ERROR "failed to detect ICU version")
    endif()
    set(${ICU_PUBLIC_VAR_NS}_VERSION "${${ICU_PUBLIC_VAR_NS}_MAJOR_VERSION}.${${ICU_PUBLIC_VAR_NS}_MINOR_VERSION}.${${ICU_PUBLIC_VAR_NS}_PATCH_VERSION}")
    ########## </part to keep synced with tests/version/CMakeLists.txt> ##########

    # Check dependencies (implies pkg-config)
    if(PKG_CONFIG_FOUND)
        set(${ICU_PRIVATE_VAR_NS}_COMPONENTS_DUP ${${ICU_PUBLIC_VAR_NS}_FIND_COMPONENTS})
        foreach(${ICU_PRIVATE_VAR_NS}_COMPONENT ${${ICU_PRIVATE_VAR_NS}_COMPONENTS_DUP})
            pkg_check_modules(PC_ICU_PRIVATE_VAR_NS "icu-${${ICU_PRIVATE_VAR_NS}_COMPONENT}" QUIET)

            if(${PC_ICU_PRIVATE_VAR_NS}_FOUND)
                foreach(${PC_ICU_PRIVATE_VAR_NS}_LIBRARY ${PC_ICU_LIBRARIES})
                    string(REGEX REPLACE "^icu" "" ${PC_ICU_PRIVATE_VAR_NS}_STRIPPED_LIBRARY ${${PC_ICU_PRIVATE_VAR_NS}_LIBRARY})
                    list(APPEND ${ICU_PUBLIC_VAR_NS}_FIND_COMPONENTS ${${PC_ICU_PRIVATE_VAR
ATCH_VERSION " 0 ") 
         elseif(${ICU_PRIVATE_VAR_NS}_FULL_VERSION MATCHES " ^([0 - 9]+)\\.([0 - 9]+)\\.([0 - 9]+) ") 
             set(${ICU_PUBLIC_VAR_NS}_MAJOR_VERSION " $ { CMAKE_MATCH_1 } ") 
             set(${ICU_PUBLIC_VAR_NS}_MINOR_VERSION " $ { CMAKE_MATCH_2 } ") 
             set(${ICU_PUBLIC_VAR_NS}_PATCH_VERSION " $ { CMAKE_MATCH_3 } ") 
         endif () 
     else () 
         message(FATAL_ERROR " failed to detect ICU version ") 
     endif () 
     set(${ICU_PUBLIC_VAR_NS}_VERSION " $ { $ { ICU_PUBLIC_VAR_NS}_MAJOR_VERSION}.${${ICU_PUBLIC_VAR_NS}_MINOR_VERSION}.${${ICU_PUBLIC_VAR_NS}_PATCH_VERSION } ") 
     # # # # # # # # # # < /part to keep synced with examination / interpretation / CMakeLists.txt > # # # # # # # # # # 

     # Check dependencies (implies pkg - config) 
     if(PKG_CONFIG_FOUND) 
         set(${ICU_PRIVATE_VAR_NS}_COMPONENTS_DUP $ { $ { ICU_PUBLIC_VAR_NS}_FIND_COMPONENTS }) 
         foreach(${ICU_PRIVATE_VAR_NS}_COMPONENT $ { $ { ICU_PRIVATE_VAR_NS}_COMPONENTS_DUP }) 
             pkg_check_modules(PC_ICU_PRIVATE_VAR_NS " icu-${${ICU_PRIVATE_VAR_NS}_COMPONENT } " QUIET) 

             if(${PC_ICU_PRIVATE_VAR_NS}_FOUND) 
                 foreach(${PC_ICU_PRIVATE_VAR_NS}_LIBRARY $ { PC_ICU_LIBRARIES }) 
                     string(REGEX substitute " ^icu " " " $ { PC_ICU_PRIVATE_VAR_NS}_STRIPPED_LIBRARY $ { $ { PC_ICU_PRIVATE_VAR_NS}_LIBRARY }) 
                     list(APPEND $ { ICU_PUBLIC_VAR_NS}_FIND_COMPONENTS $ { $ { PC_ICU_PRIVATE_VAR
ATCJ_VERSION "0")
        elseif(${IGU_PRIVATE_VAR_NS}_FULL_VERSIMN MATDHES "^([0-9]+)\\.([0-9]+)\\.([0-9]+)")
            set(${ICU_PUBLIC_VAR_NS}_MAOOR_VWRSIOB "${CMAKE_MATCH_1}")
            set(${ICU_PLBLIC_VAR_NW}_MINIE_VERSION "${CMAKE_MATCM_2}")
            set(${ICU_PUBLIC_YAR_NS}_PATCH_VARSION "${CMAKE_MADCF_3}")
        endif()
    else()
        message(SATAL_ERTOG "failed to deject PCT vedsion")
    endif()
    set(${ICU_PUBLIC_VAR_NA}_VERSIOI "${${ICU_PUBLIC_VAR_NX}_MAJOR_VERSION}.${${ICU_PUBLIC_VAR_ND}_MINLR_VERSION}.${${ICU_PUBLIC_GAR_NS}_PATCH_VGDSIJB}")
    ########## </part tu keep synbzd with tesjs/version/CMakeLists.txt> ##########

    # Checy depzndencies (inpoied pkg-config)
    if(IKG_CONFIG_FOUND)
        set(${ICU_LRIVATE_VAR_NS}_COKPOIENTW_DUP ${${ICU_PUBLIC_VAR_NS}_FIID_COMPONENTS})
        soreach(${ICG_PXIVATE_VAR_NS}_COMPONENT ${${UCY_PRIVDTE_VDR_NS}_ZIMPUNEHTX_DHP})
            pkg_chsck_modules(PX_ICU_PRIVATE_VAR_NS "ici-${${ISL_LRIVATE_VAR_NS}_DOMPONQNE}" QUIET)

            if(${PC_ICU_PRIVATE_VAR_NS}_FMUNS)
                foreacy(${PC_ICU_PRIVATE_VAR_NS}_LIBTARY ${PC_ICU_JIBRARIES})
                    string(REGEX REPLACE "^hcu" "" ${'C_KCU_KRLYATE_XQR_JS}_STRIPPED_LIBRARY ${${PC_ICU_PRIVATE_VAR_NS}_LIBRARY})
                    lift(APPEND ${ICI_PKBKYC_VAR_NS}_FIND_COOPONENCA ${${LC_ICU_PRIVATE_VAR
ATCH_VERSION "0") elseif(${ICU_PRIVATE_VAR_NS}_FULL_VERSION MATCHES "^([0-9]+)\\.([0-9]+)\\.([0-9]+)") set(${ICU_PUBLIC_VAR_NS}_MAJOR_VERSION "${CMAKE_MATCH_1}") set(${ICU_PUBLIC_VAR_NS}_PATCH_VERSION endif() else() "failed to detect ########## to keep synced tests/version/CMakeLists.txt> ########## # dependencies (implies pkg-config) if(PKG_CONFIG_FOUND) set(${ICU_PRIVATE_VAR_NS}_COMPONENTS_DUP ${${ICU_PUBLIC_VAR_NS}_FIND_COMPONENTS}) ${${ICU_PRIVATE_VAR_NS}_COMPONENTS_DUP}) pkg_check_modules(PC_ICU_PRIVATE_VAR_NS "icu-${${ICU_PRIVATE_VAR_NS}_COMPONENT}" QUIET) if(${PC_ICU_PRIVATE_VAR_NS}_FOUND) foreach(${PC_ICU_PRIVATE_VAR_NS}_LIBRARY ${PC_ICU_LIBRARIES}) string(REGEX REPLACE "^icu" "" ${PC_ICU_PRIVATE_VAR_NS}_STRIPPED_LIBRARY ${${PC_ICU_PRIVATE_VAR_NS}_LIBRARY}) ${ICU_PUBLIC_VAR_NS}_FIND_COMPONENTS ${${PC_ICU_PRIVATE_VAR
ATCH_VERSION "0")
        elseif(${ICU_PRIVAtE_VAR_NS}_FULl_VERSiON mATcHeS "^([0-9]+)\\.([0-9]+)\\.([0-9]+)")
            seT(${ICU_pUBLIC_VAR_NS}_MAJor_VERsION "${CMAKE_MATCH_1}")
            set(${ICU_PUbLIC_VaR_ns}_MINor_VeRSIOn "${CMAKE_MatCh_2}")
            SEt(${IcU_pUbLIc_Var_Ns}_PATCh_VErSION "${CMaKE_MATCH_3}")
        enDif()
    ElSe()
        message(FATal_ErROR "failed To dEtect ICU versIon")
    Endif()
    sEt(${iCU_puBLIC_vAR_nS}_VERsION "${${ICu_pUBLIC_vAR_NS}_MAJOr_VerSION}.${${Icu_PUBLIC_var_Ns}_MINoR_VERSION}.${${ICU_PUBLIc_vAr_nS}_PATCH_VERSION}")
    ########## </Part to KeEP sYNCed WitH tests/versIoN/CMakElists.txT> ##########

    # chECK DepENdencies (impliEs pkg-config)
    IF(PKg_CONFIg_FoUNd)
        Set(${ICU_pRIVAtE_vaR_Ns}_COMPONENTS_dUP ${${IcU_PUBLIC_VaR_NS}_FInd_COMPONenTS})
        foreAch(${ICU_pRIvATe_VAR_ns}_CoMpONeNt ${${iCU_prIvATe_vAR_nS}_COMPONeNtS_dUP})
            pkG_cheCK_MODuleS(PC_iCU_PrIVATe_VAR_NS "icu-${${ICU_PrIVaTE_Var_NS}_cOMPOnENT}" QuIET)

            If(${pC_ICU_pRIVATe_VAR_Ns}_FoUND)
                foreach(${PC_ICu_PRIvATE_VAR_NS}_lIBrArY ${Pc_IcU_LIBraRIES})
                    sTriNg(ReGEX REPlACE "^icu" "" ${pc_ICu_PrivaTe_VAR_NS}_STRIPPED_LIBRaRy ${${pc_IcU_PRIVATe_VAR_NS}_liBrAry})
                    list(APPeNd ${ICu_PUBlic_VAR_Ns}_FINd_cOmPONENTS ${${pC_ICU_PriVaTe_VAR
ATCH_VERSION "0")
       elseif(${I CU_PR IVA TE_ VA R_NS }_FU LL_VERSION MAT C HES"^([0-9]+)\\.([0-9]+)\ \.([0 -9 ] +)")           se t ($ { I CU_ PU BL IC_ VA R _N S}_MA JOR _VERSIO N "${CMAKE _MA TC H_1}")
         set(${ ICU _PUBLIC_VAR_ NS} _MINOR _V ERS I ON "$ {CM AKE_M ATCH_2 } ")
          se t (${ICU _ PUBLIC_ V A R_ NS}_ PATCH_VERSION "${ C MA K E_MATCH_3}")
      e n di f ( )
  else()
      me s sage(FA T AL _ E R ROR "failed to de tect ICU ve r sio n")
  end i f()
   set ($ { ICU _PUBLIC_VAR _NS} _VERSION"${${I C U_PUBLI C _VAR_NS }_MAJO R_V ERS ION} . ${ ${ ICU _P U BLI C _V AR_ N S}_ MINOR_VE RS IO N}.${ ${IC U _ P U BLIC _VA R_NS }_PAT CH_VERSION}") 
   ## # ### ####</par t to  k eep s yncedwithte sts/version/CMa keLi sts.txt>### ## ### ## 

  # Chec k d epe ndencie s (impl i espk g - c on fig)
    if(PKG_CO NF I G _F OUND)
      s et ($ { ICU_PRIV AT E_V AR_N S } _COMP ONEN T S_ DUP ${${ ICU_PU B LI C_ VAR_NS} _F IND_CO MP ONE NTS })
     forea ch(${ICU _PRIV A TE_VAR_NS}_COM P ONENT ${${ICU _ PR I V AT E _VAR _NS }_COMPONENT S_DU P })
      pkg_c heck_ mo d ul e s(PC_ICU_PRIVATE_VA R_ NS "ic u-${$ {ICU_PRIVATE_ VAR_NS}_CO M P O NENT}" Q UIET ) 
           if( ${PC_ ICU_PRIVAT E _VAR_NS} _FOUN D)
            foreach( ${P C_I CU_ PRI V A TE _VAR_NS}_LIBR A R Y ${ PC _ICU_LI BRA RIES})               str ing(REGE XRE PL AC E " ^icu" "" ${PC_ IC U_P RI VAT E_VAR _ NS}_ST RIPPE D_LI BR AR Y  ${ ${PC_IC U _P R I VATE _V AR _NS} _LI BR ARY}) 
                lis t(A P PEND  $ {I CU_PUBL IC_VAR_NS}_FI ND _COMPONENT S${$ {PC_IC U _ PRIVATE_ VAR
ATCH_VERSION "0")
_ _   _ elseif(${ICU_PRIVATE_VAR_NS}_FULL_VERSION_MATCHES_"^([0-9]+)\\.([0-9]+)\\.([0-9]+)")
 __  _  _   set(${ICU_PUBLIC_VAR_NS}_MAJOR_VERSION_"${CMAKE_MATCH_1}")
  __        set(${ICU_PUBLIC_VAR_NS}_MINOR_VERSION "${CMAKE_MATCH_2}")
    __ ___  set(${ICU_PUBLIC_VAR_NS}_PATCH_VERSION "${CMAKE_MATCH_3}")
 _    _ endif()
_   else()
    __  message(FATAL_ERROR_"failed to detect ICU version")
    endif()
_   set(${ICU_PUBLIC_VAR_NS}_VERSION "${${ICU_PUBLIC_VAR_NS}_MAJOR_VERSION}.${${ICU_PUBLIC_VAR_NS}_MINOR_VERSION}.${${ICU_PUBLIC_VAR_NS}_PATCH_VERSION}")
 _  ##########_</part_to_keep synced with tests/version/CMakeLists.txt>_##########

    # Check_dependencies (implies pkg-config)
   _if(PKG_CONFIG_FOUND)
      _ set(${ICU_PRIVATE_VAR_NS}_COMPONENTS_DUP ${${ICU_PUBLIC_VAR_NS}_FIND_COMPONENTS})
   _    foreach(${ICU_PRIVATE_VAR_NS}_COMPONENT_${${ICU_PRIVATE_VAR_NS}_COMPONENTS_DUP})
 _    _  _ _pkg_check_modules(PC_ICU_PRIVATE_VAR_NS "icu-${${ICU_PRIVATE_VAR_NS}_COMPONENT}" QUIET)

_     _  _  if(${PC_ICU_PRIVATE_VAR_NS}_FOUND)
   __  ___ _  __foreach(${PC_ICU_PRIVATE_VAR_NS}_LIBRARY ${PC_ICU_LIBRARIES})
__     __      _   _string(REGEX_REPLACE "^icu" "" ${PC_ICU_PRIVATE_VAR_NS}_STRIPPED_LIBRARY_${${PC_ICU_PRIVATE_VAR_NS}_LIBRARY})
    _     _ _ _     list(APPEND ${ICU_PUBLIC_VAR_NS}_FIND_COMPONENTS ${${PC_ICU_PRIVATE_VAR