xref: /aosp_15_r20/external/cronet/third_party/re2/src/re2Config.cmake.in (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2022 The RE2 Authors.  All Rights Reserved.
2# Use of this source code is governed by a BSD-style
3# license that can be found in the LICENSE file.
4
5@PACKAGE_INIT@
6
7include(CMakeFindDependencyMacro)
8
9if(UNIX)
10  set(THREADS_PREFER_PTHREAD_FLAG ON)
11  find_dependency(Threads REQUIRED)
12endif()
13
14find_dependency(absl REQUIRED)
15
16if(@RE2_USE_ICU@)
17  find_dependency(ICU REQUIRED COMPONENTS uc)
18endif()
19
20check_required_components(re2)
21
22if(TARGET re2::re2)
23  return()
24endif()
25
26include(${CMAKE_CURRENT_LIST_DIR}/re2Targets.cmake)
27