blob: be7b6bc643b50e72cd49fbc31667eadb73fe0eb1 [file] [log] [blame]
# Copyright 2022 The RE2 Authors. All Rights Reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
if(UNIX)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_dependency(Threads REQUIRED)
endif()
find_dependency(absl REQUIRED)
if(@RE2_USE_ICU@)
find_dependency(ICU REQUIRED COMPONENTS uc)
endif()
check_required_components(re2)
if(TARGET re2::re2)
return()
endif()
include(${CMAKE_CURRENT_LIST_DIR}/re2Targets.cmake)