Skip to content

Commit

Permalink
Bump the CMake baseline to 3.13.
Browse files Browse the repository at this point in the history
While I'm here, fix a TODO.

Change-Id: I6be0612f0a4e8f824a5ee7f5c8169877d9423bae
Reviewed-on: https://code-review.googlesource.com/c/re2/+/61510
Reviewed-by: Alex Chernyakhovsky <[email protected]>
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Jul 6, 2023
1 parent 1c1ffbe commit 1d465f6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# Old enough to support Ubuntu Bionic,
# but just the MAJOR.MINOR components.
cmake_minimum_required(VERSION 3.10)
# https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md
cmake_minimum_required(VERSION 3.13)

project(RE2 CXX)
include(CMakePackageConfigHelpers)
Expand Down Expand Up @@ -96,11 +95,7 @@ if(USEPCRE)
list(APPEND EXTRA_TARGET_LINK_LIBRARIES pcre)
endif()

# TODO(junyer): Use string(JOIN " " ...) whenever CMake 3.12 (or newer) becomes
# the minimum required: that will make this hack slightly less filthy. For now,
# CMake does the same thing as string(CONCAT ...), basically, if we don't quote
# ${REQUIRES}, so quote it despite prevailing style.
string(REPLACE ";" " " REQUIRES "${REQUIRES}")
list(JOIN REQUIRES " " REQUIRES)

set(RE2_SOURCES
re2/bitmap256.cc
Expand Down

0 comments on commit 1d465f6

Please sign in to comment.