Files
re2/re2Config.cmake.in
Paul Wankadia 9ebe4a22ca Stop setting re2_INCLUDE_DIR.
It was probably neither needed nor used and will start causing
problems as of CMake 3.29, which removes `PACKAGE_PREFIX_DIR`.

Fixes #488.

Change-Id: I707dc903234309698a6745d2b61279fd3b7bd6dc
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62930
Reviewed-by: Paul Wankadia <junyer@google.com>
Reviewed-by: Alex Chernyakhovsky <achernya@google.com>
2024-04-08 13:36:41 +00:00

27 lines
531 B
CMake

# 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)