From e02b6a933501158078d7885aa7a8bcd3c3a23a3b Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Tue, 15 Aug 2023 15:46:58 -0700 Subject: [PATCH] Add new search path for utf8_range in CMake build This will allow us to run the CMake test from within the protobuf repo's Bazel workspace. The directory structure is a little bit different depending on which workspace the test is invoked in. PiperOrigin-RevId: 557275295 --- cmake/make_cmakelists.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/make_cmakelists.py b/cmake/make_cmakelists.py index 8b4f51064e..b38dccab29 100755 --- a/cmake/make_cmakelists.py +++ b/cmake/make_cmakelists.py @@ -366,6 +366,8 @@ class Converter(object): if(EXISTS ../external/utf8_range) # utf8_range is already installed include_directories(../external/utf8_range) + elseif(EXISTS ../../utf8_range) + include_directories(../../utf8_range) else() include(FetchContent) FetchContent_Declare(