Skip to content

Commit

Permalink
Avoid warning in CMake when using re2 as a subproject
Browse files Browse the repository at this point in the history
Change-Id: Iebd37f2367a29db386a20a7686b93c54c3b2c7cd
Reviewed-on: https://code-review.googlesource.com/18071
Reviewed-by: Paul Wankadia <junyer@google.com>
  • Loading branch information
hjmallon authored and junyer committed Oct 17, 2017
1 parent 70f6645 commit d70e0af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -5,6 +5,10 @@
# Old enough to support Ubuntu Trusty.
cmake_minimum_required(VERSION 2.8.12)

if(POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif()

project(RE2 CXX)
include(CTest)

Expand Down

0 comments on commit d70e0af

Please sign in to comment.