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
9set_and_check(re2_INCLUDE_DIR ${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@)
10
11if(UNIX)
12  set(THREADS_PREFER_PTHREAD_FLAG ON)
13  find_dependency(Threads REQUIRED)
14endif()
15
16check_required_components(re2)
17
18if(TARGET re2::re2)
19  return()
20endif()
21
22include(${CMAKE_CURRENT_LIST_DIR}/re2Targets.cmake)
23