Remove unneeded policy setting.
We shouldn't need this anymore: policy CMP0048 was introduced in CMake
3.0; we started setting it back when CMake 2.8.12 was our minimum, but
now CMake 3.5.1 is our minimum.
Change-Id: Ice64a376cef3ea1420e9d3d73de6efa5bd95e71c
Reviewed-on: https://code-review.googlesource.com/c/re2/+/58610
Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1ef60d..efebe16 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,10 +5,6 @@
# Old enough to support Ubuntu Xenial.
cmake_minimum_required(VERSION 3.5.1)
-if(POLICY CMP0048)
- cmake_policy(SET CMP0048 NEW)
-endif()
-
project(RE2 CXX)
include(CTest)
include(GNUInstallDirs)
@@ -137,12 +133,12 @@
add_executable(${target} re2/testing/${target}.cc util/test.cc)
target_link_libraries(${target} testing ${EXTRA_TARGET_LINK_LIBRARIES})
add_test(NAME ${target} COMMAND ${target})
- endforeach(target)
+ endforeach()
foreach(target ${BENCHMARK_TARGETS})
add_executable(${target} re2/testing/${target}.cc util/benchmark.cc)
target_link_libraries(${target} testing ${EXTRA_TARGET_LINK_LIBRARIES})
- endforeach(target)
+ endforeach()
endif()
set(RE2_HEADERS