diff --git a/Tests/MakeClean/ToClean/CMakeLists.txt b/Tests/MakeClean/ToClean/CMakeLists.txt index 47542e8b5..50facadb7 100644 --- a/Tests/MakeClean/ToClean/CMakeLists.txt +++ b/Tests/MakeClean/ToClean/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_policy(VERSION 2.6) +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(ToClean) # Build a simple project. diff --git a/Tests/Preprocess/CMakeLists.txt b/Tests/Preprocess/CMakeLists.txt index b1f95f4e8..fa9a1098b 100644 --- a/Tests/Preprocess/CMakeLists.txt +++ b/Tests/Preprocess/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_policy(VERSION 2.6) +cmake_minimum_required(VERSION 2.6) project(Preprocess) # This test is meant both as a test and as a reference for supported