summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2008-03-25 11:27:18 -0400
committerKen Martin <ken.martin@kitware.com>2008-03-25 11:27:18 -0400
commitce8810c4e7b95637136c3e47b87f8fa409bfbbee (patch)
tree34875227f81c403b37530fe5cb390ebb202d645e
parent5905d79c8a10b172642a1b534f088b965667b007 (diff)
downloadcmake-ce8810c4e7b95637136c3e47b87f8fa409bfbbee.tar.gz
ENH: preclean some warnings
-rw-r--r--Tests/Assembler/CMakeLists.txt1
-rw-r--r--Tests/BuildDepends/CMakeLists.txt1
-rw-r--r--Tests/BundleTest/CMakeLists.txt1
-rw-r--r--Tests/COnly/CMakeLists.txt1
-rw-r--r--Tests/CTestTest/CMakeLists.txt1
-rw-r--r--Tests/CTestTest2/CMakeLists.txt1
-rw-r--r--Tests/CommandLineTest/CMakeLists.txt1
-rw-r--r--Tests/ConvLibrary/CMakeLists.txt1
-rw-r--r--Tests/CustComDepend/CMakeLists.txt1
-rw-r--r--Tests/CustomCommand/CMakeLists.txt1
-rw-r--r--Tests/CustomCommandWorkingDirectory/CMakeLists.txt1
-rw-r--r--Tests/Dependency/CMakeLists.txt1
-rw-r--r--Tests/DocTest/CMakeLists.txt1
-rw-r--r--Tests/ExportImport/CMakeLists.txt1
-rw-r--r--Tests/ExportImport/Export/CMakeLists.txt1
-rw-r--r--Tests/ExportImport/Import/CMakeLists.txt1
-rw-r--r--Tests/ExternalOBJ/CMakeLists.txt1
-rw-r--r--Tests/ExternalOBJ/Object/CMakeLists.txt1
-rw-r--r--Tests/FindPackageTest/CMakeLists.txt1
-rw-r--r--Tests/Fortran/CMakeLists.txt1
-rw-r--r--Tests/Framework/CMakeLists.txt1
-rw-r--r--Tests/FunctionTest/CMakeLists.txt1
-rw-r--r--Tests/Java/CMakeLists.txt1
-rw-r--r--Tests/Jump/CMakeLists.txt1
-rw-r--r--Tests/LoadCommand/CMakeCommands/CMakeLists.txt1
-rw-r--r--Tests/LoadCommand/CMakeLists.txt1
-rw-r--r--Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt1
-rw-r--r--Tests/LoadCommandOneConfig/CMakeLists.txt1
-rw-r--r--Tests/MacroTest/CMakeLists.txt1
-rw-r--r--Tests/MakeClean/CMakeLists.txt1
-rw-r--r--Tests/MathTest/CMakeLists.txt1
-rw-r--r--Tests/NewlineArgs/CMakeLists.txt1
-rw-r--r--Tests/OutOfSource/CMakeLists.txt1
-rw-r--r--Tests/Plugin/CMakeLists.txt1
-rw-r--r--Tests/PrecompiledHeader/CMakeLists.txt1
-rw-r--r--Tests/Properties/CMakeLists.txt1
-rw-r--r--Tests/ReturnTest/CMakeLists.txt1
-rw-r--r--Tests/RuntimePath/CMakeLists.txt1
-rw-r--r--Tests/SameName/CMakeLists.txt1
-rw-r--r--Tests/SetLang/CMakeLists.txt1
-rw-r--r--Tests/SimpleExclude/CMakeLists.txt1
-rw-r--r--Tests/SimpleInstall/CMakeLists.txt1
-rw-r--r--Tests/SimpleInstallS2/CMakeLists.txt1
-rw-r--r--Tests/SourceGroups/CMakeLists.txt1
-rw-r--r--Tests/StringFileTest/CMakeLists.txt3
-rw-r--r--Tests/SubDir/CMakeLists.txt1
-rw-r--r--Tests/SubDir/Examples/CMakeLists.txt1
-rw-r--r--Tests/SubDir/Examples/example1/CMakeLists.txt1
-rw-r--r--Tests/SubDirSpaces/CMakeLists.txt1
-rw-r--r--Tests/SubDirSpaces/Some Examples/CMakeLists.txt1
-rw-r--r--Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt1
-rw-r--r--Tests/SubProject/CMakeLists.txt1
-rw-r--r--Tests/SwigTest/CMakeLists.txt1
-rw-r--r--Tests/SystemInformation/CMakeLists.txt1
-rw-r--r--Tests/TarTest/CMakeLists.txt1
-rw-r--r--Tests/TargetName/CMakeLists.txt1
-rw-r--r--Tests/TestDriver/CMakeLists.txt3
-rw-r--r--Tests/Testing/CMakeLists.txt1
-rw-r--r--Tests/TryCompile/CMakeLists.txt1
-rw-r--r--Tests/Tutorial/Step1/CMakeLists.txt1
-rw-r--r--Tests/Tutorial/Step2/CMakeLists.txt1
-rw-r--r--Tests/Tutorial/Step3/CMakeLists.txt1
-rw-r--r--Tests/Tutorial/Step4/CMakeLists.txt1
-rw-r--r--Tests/Tutorial/Step5/CMakeLists.txt1
-rw-r--r--Tests/Tutorial/Step6/CMakeLists.txt1
-rw-r--r--Tests/Tutorial/Step7/CMakeLists.txt1
-rw-r--r--Tests/UseWX/CMakeLists.txt1
-rw-r--r--Tests/VSExternalInclude/CMakeLists.txt1
-rw-r--r--Tests/Wrapping/CMakeLists.txt1
-rw-r--r--Tests/X11/CMakeLists.txt1
70 files changed, 72 insertions, 2 deletions
diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt
index 68035ea6e2..b2937bbb1c 100644
--- a/Tests/Assembler/CMakeLists.txt
+++ b/Tests/Assembler/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(Assembler)
set(SRCS)
diff --git a/Tests/BuildDepends/CMakeLists.txt b/Tests/BuildDepends/CMakeLists.txt
index a56e94404e..0d143ca170 100644
--- a/Tests/BuildDepends/CMakeLists.txt
+++ b/Tests/BuildDepends/CMakeLists.txt
@@ -4,6 +4,7 @@
# are working the executable should relink with the new
# value. The subdir Project contains the CMakelists.txt
# and source files for the test project.
+cmake_minimum_required (VERSION 2.6)
project(BuildDepends)
# This entire test takes place during the initial
diff --git a/Tests/BundleTest/CMakeLists.txt b/Tests/BundleTest/CMakeLists.txt
index 2eec9eaf3b..3f95afb51b 100644
--- a/Tests/BundleTest/CMakeLists.txt
+++ b/Tests/BundleTest/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(BundleTest)
SET(MACOSX_BUNDLE_INFO_STRING "bundle_info_string")
SET(CMAKE_MacOSX_Content_COMPILE_OBJECT "\"${CMAKE_COMMAND}\" -E copy_if_different <SOURCE> <OBJECT>")
diff --git a/Tests/COnly/CMakeLists.txt b/Tests/COnly/CMakeLists.txt
index c4d76e015c..77420555fb 100644
--- a/Tests/COnly/CMakeLists.txt
+++ b/Tests/COnly/CMakeLists.txt
@@ -1,4 +1,5 @@
# a simple C only test case
+cmake_minimum_required (VERSION 2.6)
project (COnly C)
set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
diff --git a/Tests/CTestTest/CMakeLists.txt b/Tests/CTestTest/CMakeLists.txt
index 70e368a286..7d87612389 100644
--- a/Tests/CTestTest/CMakeLists.txt
+++ b/Tests/CTestTest/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTest)
SET(DART_ROOT "" CACHE STRING "" FORCE)
diff --git a/Tests/CTestTest2/CMakeLists.txt b/Tests/CTestTest2/CMakeLists.txt
index 7678748ba1..ec793c4186 100644
--- a/Tests/CTestTest2/CMakeLists.txt
+++ b/Tests/CTestTest2/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTest2)
SET(DART_ROOT "" CACHE STRING "" FORCE)
diff --git a/Tests/CommandLineTest/CMakeLists.txt b/Tests/CommandLineTest/CMakeLists.txt
index f9abfdfeee..e01a4c7026 100644
--- a/Tests/CommandLineTest/CMakeLists.txt
+++ b/Tests/CommandLineTest/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(CommandLineTest)
GET_FILENAME_COMPONENT(CMAKE_BIN_DIR ${CMAKE_COMMAND} PATH)
diff --git a/Tests/ConvLibrary/CMakeLists.txt b/Tests/ConvLibrary/CMakeLists.txt
index bf1ab83777..afc1cb653d 100644
--- a/Tests/ConvLibrary/CMakeLists.txt
+++ b/Tests/ConvLibrary/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(ConvLibrary)
# create a source list
diff --git a/Tests/CustComDepend/CMakeLists.txt b/Tests/CustComDepend/CMakeLists.txt
index e4a3325744..d5266842da 100644
--- a/Tests/CustComDepend/CMakeLists.txt
+++ b/Tests/CustComDepend/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(CustComDepend)
include_directories("${CustComDepend_SOURCE_DIR}")
add_definitions(-D_CRT_SECURE_NO_DEPRECATE=1)
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index 71ded6d443..29c06cd305 100644
--- a/Tests/CustomCommand/CMakeLists.txt
+++ b/Tests/CustomCommand/CMakeLists.txt
@@ -1,6 +1,7 @@
#
# Wrapping
#
+cmake_minimum_required (VERSION 2.6)
PROJECT (CustomCommand)
ADD_SUBDIRECTORY(GeneratedHeader)
diff --git a/Tests/CustomCommandWorkingDirectory/CMakeLists.txt b/Tests/CustomCommandWorkingDirectory/CMakeLists.txt
index 4ddc87a553..57cb712ab8 100644
--- a/Tests/CustomCommandWorkingDirectory/CMakeLists.txt
+++ b/Tests/CustomCommandWorkingDirectory/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(TestWorkingDir)
ADD_CUSTOM_COMMAND(
diff --git a/Tests/Dependency/CMakeLists.txt b/Tests/Dependency/CMakeLists.txt
index f3578ac9fe..729c028db5 100644
--- a/Tests/Dependency/CMakeLists.txt
+++ b/Tests/Dependency/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT( Dependency )
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
diff --git a/Tests/DocTest/CMakeLists.txt b/Tests/DocTest/CMakeLists.txt
index bd78992f80..837328e817 100644
--- a/Tests/DocTest/CMakeLists.txt
+++ b/Tests/DocTest/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project (DocTest)
add_executable (DocTest DocTest.cxx)
diff --git a/Tests/ExportImport/CMakeLists.txt b/Tests/ExportImport/CMakeLists.txt
index 55771136ff..3b54e9dde2 100644
--- a/Tests/ExportImport/CMakeLists.txt
+++ b/Tests/ExportImport/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(ExportImport C)
# Wipe out the install tree to make sure the exporter works.
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt
index 74ff8ed642..9f1bab3bfc 100644
--- a/Tests/ExportImport/Export/CMakeLists.txt
+++ b/Tests/ExportImport/Export/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(Export C)
# We need ansi C support.
diff --git a/Tests/ExportImport/Import/CMakeLists.txt b/Tests/ExportImport/Import/CMakeLists.txt
index b54a0692e3..5a946edab9 100644
--- a/Tests/ExportImport/Import/CMakeLists.txt
+++ b/Tests/ExportImport/Import/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(Import C)
# We need ansi C support.
diff --git a/Tests/ExternalOBJ/CMakeLists.txt b/Tests/ExternalOBJ/CMakeLists.txt
index 1db0515c47..2b126e1e13 100644
--- a/Tests/ExternalOBJ/CMakeLists.txt
+++ b/Tests/ExternalOBJ/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT (ExternalOBJ)
IF(APPLE)
diff --git a/Tests/ExternalOBJ/Object/CMakeLists.txt b/Tests/ExternalOBJ/Object/CMakeLists.txt
index 7c01e54da5..6f1d7e3fb8 100644
--- a/Tests/ExternalOBJ/Object/CMakeLists.txt
+++ b/Tests/ExternalOBJ/Object/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(Object)
IF(APPLE)
# set _CMAKE_OSX_MACHINE to umame -m
diff --git a/Tests/FindPackageTest/CMakeLists.txt b/Tests/FindPackageTest/CMakeLists.txt
index 2925db0a9c..e19c7098ab 100644
--- a/Tests/FindPackageTest/CMakeLists.txt
+++ b/Tests/FindPackageTest/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(FindPackageTest)
# Look for a package that has a find module and may be found.
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt
index 54f18d06d1..ca7d89a4de 100644
--- a/Tests/Fortran/CMakeLists.txt
+++ b/Tests/Fortran/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(testf Fortran)
SET(CMAKE_VERBOSE_MAKEFILE 1)
MESSAGE("ENV_FLAGS = $ENV{FFLAGS}")
diff --git a/Tests/Framework/CMakeLists.txt b/Tests/Framework/CMakeLists.txt
index a6707a491b..58c2cfb111 100644
--- a/Tests/Framework/CMakeLists.txt
+++ b/Tests/Framework/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(Framework)
add_library(foo SHARED
diff --git a/Tests/FunctionTest/CMakeLists.txt b/Tests/FunctionTest/CMakeLists.txt
index 91f51b66b1..3a25bb4106 100644
--- a/Tests/FunctionTest/CMakeLists.txt
+++ b/Tests/FunctionTest/CMakeLists.txt
@@ -1,4 +1,5 @@
# a simple C only test case
+cmake_minimum_required (VERSION 2.6)
PROJECT (FunctionTest)
SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
diff --git a/Tests/Java/CMakeLists.txt b/Tests/Java/CMakeLists.txt
index 2af5b89323..b0dfaa5e67 100644
--- a/Tests/Java/CMakeLists.txt
+++ b/Tests/Java/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(hello Java)
SET(CMAKE_VERBOSE_MAKEFILE 1)
diff --git a/Tests/Jump/CMakeLists.txt b/Tests/Jump/CMakeLists.txt
index 18776a1eb5..4bdafd09bb 100644
--- a/Tests/Jump/CMakeLists.txt
+++ b/Tests/Jump/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(Jump)
SET(CMAKE_IGNORE_DEPENDENCIES_ORDERING 1)
diff --git a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
index 55b6b8beec..4ba21d2743 100644
--- a/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
+++ b/Tests/LoadCommand/CMakeCommands/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(CMAKE_LOADED_COMMANDS)
IF (MUDSLIDE_TYPE MATCHES MUCHO)
diff --git a/Tests/LoadCommand/CMakeLists.txt b/Tests/LoadCommand/CMakeLists.txt
index 189f1c17b5..e99105a749 100644
--- a/Tests/LoadCommand/CMakeLists.txt
+++ b/Tests/LoadCommand/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(LoadCommand)
# set a definition
diff --git a/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt
index 55b6b8beec..4ba21d2743 100644
--- a/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt
+++ b/Tests/LoadCommandOneConfig/CMakeCommands/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(CMAKE_LOADED_COMMANDS)
IF (MUDSLIDE_TYPE MATCHES MUCHO)
diff --git a/Tests/LoadCommandOneConfig/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeLists.txt
index 189f1c17b5..e99105a749 100644
--- a/Tests/LoadCommandOneConfig/CMakeLists.txt
+++ b/Tests/LoadCommandOneConfig/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(LoadCommand)
# set a definition
diff --git a/Tests/MacroTest/CMakeLists.txt b/Tests/MacroTest/CMakeLists.txt
index 86937a9e70..d0220ff926 100644
--- a/Tests/MacroTest/CMakeLists.txt
+++ b/Tests/MacroTest/CMakeLists.txt
@@ -1,4 +1,5 @@
# a simple C only test case
+cmake_minimum_required (VERSION 2.6)
PROJECT (MacroTest)
SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
diff --git a/Tests/MakeClean/CMakeLists.txt b/Tests/MakeClean/CMakeLists.txt
index 6f094769aa..aaf39d79d9 100644
--- a/Tests/MakeClean/CMakeLists.txt
+++ b/Tests/MakeClean/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(MakeClean)
SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
diff --git a/Tests/MathTest/CMakeLists.txt b/Tests/MathTest/CMakeLists.txt
index bff35f761e..d1e5b1acd8 100644
--- a/Tests/MathTest/CMakeLists.txt
+++ b/Tests/MathTest/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(MathTest)
diff --git a/Tests/NewlineArgs/CMakeLists.txt b/Tests/NewlineArgs/CMakeLists.txt
index eb618a323c..a182304883 100644
--- a/Tests/NewlineArgs/CMakeLists.txt
+++ b/Tests/NewlineArgs/CMakeLists.txt
@@ -1,4 +1,5 @@
# a simple CXX only test case
+cmake_minimum_required (VERSION 2.6)
project (NewlineArgs CXX)
add_definitions("-DTEST_FLAG_1
diff --git a/Tests/OutOfSource/CMakeLists.txt b/Tests/OutOfSource/CMakeLists.txt
index 265d47deb4..e250f41771 100644
--- a/Tests/OutOfSource/CMakeLists.txt
+++ b/Tests/OutOfSource/CMakeLists.txt
@@ -1,4 +1,5 @@
# a simple test cas
+cmake_minimum_required (VERSION 2.6)
project (OutOfSource)
add_subdirectory(SubDir)
diff --git a/Tests/Plugin/CMakeLists.txt b/Tests/Plugin/CMakeLists.txt
index 4e8ff9e671..2245a8a98d 100644
--- a/Tests/Plugin/CMakeLists.txt
+++ b/Tests/Plugin/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(Plugin)
# Test per-target output directory properties.
diff --git a/Tests/PrecompiledHeader/CMakeLists.txt b/Tests/PrecompiledHeader/CMakeLists.txt
index 8b76eb48c5..b0b7989ba5 100644
--- a/Tests/PrecompiledHeader/CMakeLists.txt
+++ b/Tests/PrecompiledHeader/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(PrecompiledHeader C)
# Make sure the proper compiler is in use.
diff --git a/Tests/Properties/CMakeLists.txt b/Tests/Properties/CMakeLists.txt
index a889e3edff..546a96aef6 100644
--- a/Tests/Properties/CMakeLists.txt
+++ b/Tests/Properties/CMakeLists.txt
@@ -1,4 +1,5 @@
# a simple CXX only test case
+cmake_minimum_required (VERSION 2.6)
project (Properties)
# these first three tests really test both properties and the management of
diff --git a/Tests/ReturnTest/CMakeLists.txt b/Tests/ReturnTest/CMakeLists.txt
index e48c88df7c..bd0966e013 100644
--- a/Tests/ReturnTest/CMakeLists.txt
+++ b/Tests/ReturnTest/CMakeLists.txt
@@ -1,4 +1,5 @@
# a simple C only test case
+cmake_minimum_required (VERSION 2.6)
project (ReturnTest)
set (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
diff --git a/Tests/RuntimePath/CMakeLists.txt b/Tests/RuntimePath/CMakeLists.txt
index 4a5fbbd644..55557093a2 100644
--- a/Tests/RuntimePath/CMakeLists.txt
+++ b/Tests/RuntimePath/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(RuntimePath C)
if(CMAKE_ANSI_CFLAGS)
diff --git a/Tests/SameName/CMakeLists.txt b/Tests/SameName/CMakeLists.txt
index 1c5cffbbe7..a4b993cfd6 100644
--- a/Tests/SameName/CMakeLists.txt
+++ b/Tests/SameName/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(SameName C)
ADD_SUBDIRECTORY(Lib1)
diff --git a/Tests/SetLang/CMakeLists.txt b/Tests/SetLang/CMakeLists.txt
index dda13c1f70..ab6570c335 100644
--- a/Tests/SetLang/CMakeLists.txt
+++ b/Tests/SetLang/CMakeLists.txt
@@ -1,4 +1,5 @@
# test forcing a source file language to c++ from c
+cmake_minimum_required (VERSION 2.6)
project(SetLang)
# force this to be verbose so I can debug a dashboard entry
SET(CMAKE_VERBOSE_MAKEFILE 1)
diff --git a/Tests/SimpleExclude/CMakeLists.txt b/Tests/SimpleExclude/CMakeLists.txt
index e94f495a4a..baca23e39b 100644
--- a/Tests/SimpleExclude/CMakeLists.txt
+++ b/Tests/SimpleExclude/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(SimpleExclude C)
set(EXECUTABLE_OUTPUT_PATH "${SimpleExclude_BINARY_DIR}" CACHE INTERNAL "" FORCE)
diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt
index 34989d254f..23d3d27203 100644
--- a/Tests/SimpleInstall/CMakeLists.txt
+++ b/Tests/SimpleInstall/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT (TestSimpleInstall)
SET(CMAKE_VERBOSE_MAKEFILE 1)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt
index 34989d254f..23d3d27203 100644
--- a/Tests/SimpleInstallS2/CMakeLists.txt
+++ b/Tests/SimpleInstallS2/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT (TestSimpleInstall)
SET(CMAKE_VERBOSE_MAKEFILE 1)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
diff --git a/Tests/SourceGroups/CMakeLists.txt b/Tests/SourceGroups/CMakeLists.txt
index 30f66631c4..2bc511d25a 100644
--- a/Tests/SourceGroups/CMakeLists.txt
+++ b/Tests/SourceGroups/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(SourceGroups)
# We need ansi C support, otherwise it doesn't build e.g. on HP-UX:
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt
index f3041c348b..8c5f3fac61 100644
--- a/Tests/StringFileTest/CMakeLists.txt
+++ b/Tests/StringFileTest/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(StringFileTest)
INCLUDE_DIRECTORIES(${StringFileTest_BINARY_DIR})
@@ -100,7 +101,7 @@ STRING(STRIP "
ST1
" ST1)
STRING(STRIP "ST2 " ST2)
-STRING(STRIP " ST3" ST3)
+STRING(STRIP " ST3" ST3)
FOREACH(var ST1 ST2 ST3)
IF("${var}" STREQUAL "${${var}}")
diff --git a/Tests/SubDir/CMakeLists.txt b/Tests/SubDir/CMakeLists.txt
index b0f9f62524..9cfbe25ce0 100644
--- a/Tests/SubDir/CMakeLists.txt
+++ b/Tests/SubDir/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(SUBDIR)
SUBDIRS(Executable EXCLUDE_FROM_ALL Examples)
WRITE_FILE(${SUBDIR_BINARY_DIR}/ShouldBeHere "This file should exist.")
diff --git a/Tests/SubDir/Examples/CMakeLists.txt b/Tests/SubDir/Examples/CMakeLists.txt
index 44f2ad236a..b0f1e896c8 100644
--- a/Tests/SubDir/Examples/CMakeLists.txt
+++ b/Tests/SubDir/Examples/CMakeLists.txt
@@ -1,2 +1,3 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(Examples)
SUBDIRS(example1 example2)
diff --git a/Tests/SubDir/Examples/example1/CMakeLists.txt b/Tests/SubDir/Examples/example1/CMakeLists.txt
index e465899d56..3036183211 100644
--- a/Tests/SubDir/Examples/example1/CMakeLists.txt
+++ b/Tests/SubDir/Examples/example1/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(example1)
ADD_EXECUTABLE(example1 example1.cxx)
diff --git a/Tests/SubDirSpaces/CMakeLists.txt b/Tests/SubDirSpaces/CMakeLists.txt
index fb04f837db..a647fef30d 100644
--- a/Tests/SubDirSpaces/CMakeLists.txt
+++ b/Tests/SubDirSpaces/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(SUBDIR)
# Some systems do not seem to support rpath with spaces.
diff --git a/Tests/SubDirSpaces/Some Examples/CMakeLists.txt b/Tests/SubDirSpaces/Some Examples/CMakeLists.txt
index 44f2ad236a..b0f1e896c8 100644
--- a/Tests/SubDirSpaces/Some Examples/CMakeLists.txt
+++ b/Tests/SubDirSpaces/Some Examples/CMakeLists.txt
@@ -1,2 +1,3 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(Examples)
SUBDIRS(example1 example2)
diff --git a/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt b/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt
index e465899d56..3036183211 100644
--- a/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt
+++ b/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(example1)
ADD_EXECUTABLE(example1 example1.cxx)
diff --git a/Tests/SubProject/CMakeLists.txt b/Tests/SubProject/CMakeLists.txt
index f825749cfb..b669621df9 100644
--- a/Tests/SubProject/CMakeLists.txt
+++ b/Tests/SubProject/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(SubProject)
message("${CMAKE_IMPORT_LIBRARY_SUFFIX}")
add_library(bar bar.cxx)
diff --git a/Tests/SwigTest/CMakeLists.txt b/Tests/SwigTest/CMakeLists.txt
index adf955fbe3..5a8e61922a 100644
--- a/Tests/SwigTest/CMakeLists.txt
+++ b/Tests/SwigTest/CMakeLists.txt
@@ -1,5 +1,6 @@
SET(language "python")
+cmake_minimum_required (VERSION 2.6)
PROJECT(example_${language}_class)
diff --git a/Tests/SystemInformation/CMakeLists.txt b/Tests/SystemInformation/CMakeLists.txt
index 5e015cedc4..c4285758eb 100644
--- a/Tests/SystemInformation/CMakeLists.txt
+++ b/Tests/SystemInformation/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(SystemInformation)
INCLUDE_DIRECTORIES("This does not exists")
diff --git a/Tests/TarTest/CMakeLists.txt b/Tests/TarTest/CMakeLists.txt
index cfb26bf683..548712d887 100644
--- a/Tests/TarTest/CMakeLists.txt
+++ b/Tests/TarTest/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(TarTest)
# this is macro that we will be running
diff --git a/Tests/TargetName/CMakeLists.txt b/Tests/TargetName/CMakeLists.txt
index 653286eb06..9729d21ffd 100644
--- a/Tests/TargetName/CMakeLists.txt
+++ b/Tests/TargetName/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project(TargetName)
add_subdirectory(executables)
diff --git a/Tests/TestDriver/CMakeLists.txt b/Tests/TestDriver/CMakeLists.txt
index 810c9ff58c..bd5e97414d 100644
--- a/Tests/TestDriver/CMakeLists.txt
+++ b/Tests/TestDriver/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(TestDriverTest)
SET(Extra_SRCS testExtraStuff.cxx testExtraStuff2.cxx )
@@ -7,7 +8,7 @@ CREATE_TEST_SOURCELIST(testSrcs
TestDriverTest.cxx
test1.cxx
test2.cxx
- subdir/test3.cxx
+ subdir/test3.cxx
EXTRA_INCLUDE testArgs.h FUNCTION testProccessArgs)
ADD_EXECUTABLE(TestDriverTest ${testSrcs} ${Extra_SRCS})
diff --git a/Tests/Testing/CMakeLists.txt b/Tests/Testing/CMakeLists.txt
index 9d9cf9ddbc..c4459bb674 100644
--- a/Tests/Testing/CMakeLists.txt
+++ b/Tests/Testing/CMakeLists.txt
@@ -1,6 +1,7 @@
#
# Testing
#
+cmake_minimum_required (VERSION 2.6)
PROJECT (Testing)
#
diff --git a/Tests/TryCompile/CMakeLists.txt b/Tests/TryCompile/CMakeLists.txt
index e3b495848e..4667345bf1 100644
--- a/Tests/TryCompile/CMakeLists.txt
+++ b/Tests/TryCompile/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(TryCompile)
MACRO(TEST_ASSERT value msg)
diff --git a/Tests/Tutorial/Step1/CMakeLists.txt b/Tests/Tutorial/Step1/CMakeLists.txt
index 9691eee1d6..e461d3c8b3 100644
--- a/Tests/Tutorial/Step1/CMakeLists.txt
+++ b/Tests/Tutorial/Step1/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project (Tutorial)
# The version number.
diff --git a/Tests/Tutorial/Step2/CMakeLists.txt b/Tests/Tutorial/Step2/CMakeLists.txt
index bceb98650c..c82b7df98d 100644
--- a/Tests/Tutorial/Step2/CMakeLists.txt
+++ b/Tests/Tutorial/Step2/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project (Tutorial)
# The version number.
diff --git a/Tests/Tutorial/Step3/CMakeLists.txt b/Tests/Tutorial/Step3/CMakeLists.txt
index 5481bce9cc..0b05fd7373 100644
--- a/Tests/Tutorial/Step3/CMakeLists.txt
+++ b/Tests/Tutorial/Step3/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project (Tutorial)
# The version number.
diff --git a/Tests/Tutorial/Step4/CMakeLists.txt b/Tests/Tutorial/Step4/CMakeLists.txt
index 19d24fdefc..3b24b44169 100644
--- a/Tests/Tutorial/Step4/CMakeLists.txt
+++ b/Tests/Tutorial/Step4/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project (Tutorial)
# The version number.
diff --git a/Tests/Tutorial/Step5/CMakeLists.txt b/Tests/Tutorial/Step5/CMakeLists.txt
index 9aed227311..3002ea0846 100644
--- a/Tests/Tutorial/Step5/CMakeLists.txt
+++ b/Tests/Tutorial/Step5/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project (Tutorial)
# The version number.
diff --git a/Tests/Tutorial/Step6/CMakeLists.txt b/Tests/Tutorial/Step6/CMakeLists.txt
index b1a61fb0fa..4f70f4fc49 100644
--- a/Tests/Tutorial/Step6/CMakeLists.txt
+++ b/Tests/Tutorial/Step6/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project (Tutorial)
# The version number.
diff --git a/Tests/Tutorial/Step7/CMakeLists.txt b/Tests/Tutorial/Step7/CMakeLists.txt
index 2e89083559..826599b9f5 100644
--- a/Tests/Tutorial/Step7/CMakeLists.txt
+++ b/Tests/Tutorial/Step7/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
project (Tutorial)
# The version number.
diff --git a/Tests/UseWX/CMakeLists.txt b/Tests/UseWX/CMakeLists.txt
index ac997ff3fa..8638a081ac 100644
--- a/Tests/UseWX/CMakeLists.txt
+++ b/Tests/UseWX/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT (UsewxWidgets)
FIND_PACKAGE(wxWidgets REQUIRED)
diff --git a/Tests/VSExternalInclude/CMakeLists.txt b/Tests/VSExternalInclude/CMakeLists.txt
index 841df4f9e2..5f4a6aa911 100644
--- a/Tests/VSExternalInclude/CMakeLists.txt
+++ b/Tests/VSExternalInclude/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required (VERSION 2.6)
PROJECT(VSExternalInclude)
IF(${CMAKE_GENERATOR} MATCHES "Visual Studio 6")
diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt
index 449357707c..c84dedc478 100644
--- a/Tests/Wrapping/CMakeLists.txt
+++ b/Tests/Wrapping/CMakeLists.txt
@@ -1,6 +1,7 @@
#
# Wrapping
#
+cmake_minimum_required (VERSION 2.6)
PROJECT (Wrapping)
# Disable cleaning of custom command outputs to preserve the hacks
diff --git a/Tests/X11/CMakeLists.txt b/Tests/X11/CMakeLists.txt
index f0652578fb..28b41edc9a 100644
--- a/Tests/X11/CMakeLists.txt
+++ b/Tests/X11/CMakeLists.txt
@@ -1,4 +1,5 @@
# a simple C only test case
+cmake_minimum_required (VERSION 2.6)
PROJECT (UseX11 C)
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)